Update close-calculator.ps1

This commit is contained in:
Markus Fleschutz 2022-12-14 08:49:05 +01:00
parent 5137757500
commit c361acb66e

View File

@ -11,9 +11,5 @@
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
TaskKill /im Calculator.exe /f /t Stop-Process -name "CalculatorApp"
if ($lastExitCode -ne "0") {
& "$PSScriptRoot/speak-english.ps1" "Sorry, calculator isn't running."
exit 1
}
exit 0 # success exit 0 # success