Add open-microsoft-store.ps1 and close-microsoft-store.ps1

This commit is contained in:
Markus Fleschutz
2021-10-27 16:55:10 +02:00
parent cbe13303dd
commit 84f030a0ef
6 changed files with 87 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Closes the Microsoft Store app
.DESCRIPTION
This script closes the Microsoft Store application gracefully.
.EXAMPLE
PS> ./close-microsoft-store
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/close-program.ps1" "Microsoft Store" "WinStore.App" ""
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Starts the Microsoft Store app
.DESCRIPTION
This script starts the Microsoft Store application.
.EXAMPLE
PS> ./open-microsoft-store
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
Start-Process ms-windows-store:
exit 0 # success