Skip to content

Close-MicrosoftPaint

Closes the Microsoft Paint app

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

This script has no configurable parameters.

An interactive directory of PowerShell scripts.