PowerShell - reinstall Windows 10 Store app

 #Reinstall-StoreApp.ps1
#Requires -RunAsAdministrator

$Store=Get-Appxpackage -Allusers |
 Where-Object {$_.PackageFullName -match 'WindowsStore'} |
   Sort-Object -Property Version -Descending |
     Select-Object -First 1

$PackageName=$Store.PackageFullName
$StoreManifest = "C:\Program Files\WindowsApps\$PackageName\AppxManifest.xml"

if (Test-Path -Path $StoreManifest) {
 Add-AppxPackage -register $StoreManifest -DisableDevelopmentMode
}