Skip to content

Close-Outlook

Closes the Microsoft Outlook app

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

This script has no configurable parameters.

An interactive directory of PowerShell scripts.