Alternatively, you can use the following command instead: PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage WindowsDefender ...