Added close-program.ps1 and close-windows-terminal.ps1

This commit is contained in:
Markus Fleschutz
2020-12-27 10:02:20 +00:00
parent 5c34261e5b
commit a7bbbb99a7
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/snap/bin/powershell
# Syntax: ./close-windows-terminal.ps1
# Description: closes the Windows Terminal program 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
#}