Why does an MSI downloaded with Invoke-WebRequest fail to install even though it matches the manual download?
I'm trying to automate downloading the latest PowerShell Windows x64 MSI installer with PowerShell. Invoke-WebRequest completes successfully, but launching the downloaded file produces: "This installation package could not…