削除したアプリをインストールしなおすコマンド作成
Add-AppxPackage.ps1
$cmdA = "Add-AppxPackage -Register -DisableDevelopmentMode `"C:\Program Files\WindowsApps\"
$cmdB = "\AppxManifest.xml`""
$App = Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*windows*"}
foreach ($A in $App){
Write-Host (-join($cmdA,$A.PackageName,$cmdB))
}