Skip to content

Close-Edge

Closes the Edge browser

TaskKill /im msedge.exe /f /t
if ($lastExitCode -ne 0) {
	& "$PSScriptRoot/speak-english.ps1" "Sorry, Microsoft Edge isn't running."
	exit 1
}
exit 0 # success

This script has no configurable parameters.

An interactive directory of PowerShell scripts.