Skip to content

Open-Chrome

Launches the Chrome browser

#requires -version 5.1

param([string]$URL = "http://www.fleschutz.de")

try {
	Start-Process chrome.exe "$URL"
	exit 0 # success
} catch {
	"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
	exit 1
}

Specifies an optional URL

An interactive directory of PowerShell scripts.