Skip to content

open-file-explorer

Launches the File Explorer

#requires -version 5.1

param([string]$Path = "")

try {
	if ("$Path" -ne "") {
		start-process explorer.exe "$Path"
	} else {
		start-process explorer.exe
	}
	exit 0
} catch {
throw
}

Specifies the path to the folder to display

An interactive directory of PowerShell scripts.