Added close-chrome.ps1 and close-thunderbird.ps1

This commit is contained in:
Markus Fleschutz
2020-12-28 08:40:26 +00:00
parent 519fbbb709
commit 4946b67d1f
5 changed files with 34 additions and 16 deletions

View File

@ -1,15 +1,10 @@
#!/snap/bin/powershell
# Syntax: ./close-windows-terminal.ps1
# Description: closes the Windows Terminal program gracefully
# Description: closes Windows Terminal gracefully
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
close-program.ps1 "WindowsTerminal"
#try {
# exit 0
#} catch {
# write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
# exit 1
#}
$ExitCode = close-program.ps1 "WindowsTerminal"
exit $ExitCode