diff --git a/functions/public/Invoke-WPFButton.ps1 b/functions/public/Invoke-WPFButton.ps1 index 7b187cc4..2be6f438 100644 --- a/functions/public/Invoke-WPFButton.ps1 +++ b/functions/public/Invoke-WPFButton.ps1 @@ -80,7 +80,7 @@ function Invoke-WPFButton { } } "WPFRemoveSelectedAppx" { - Get-Process -Name *widget*, *game*, dllhost | Stop-Process -Force + Get-Process -Name *widget*, *game*, dllhost -ErrorAction SilentlyContinue | Stop-Process -Force Invoke-WPFAppxRemoval } "WPFCloseButton" {$sync.Form.Close(); Write-Host "Bye bye!"}