mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Add open-microsoft-store.ps1 and close-microsoft-store.ps1
This commit is contained in:
15
Scripts/close-microsoft-store.ps1
Executable file
15
Scripts/close-microsoft-store.ps1
Executable 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
|
15
Scripts/open-microsoft-store.ps1
Executable file
15
Scripts/open-microsoft-store.ps1
Executable 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
|
Reference in New Issue
Block a user