This is based on my previous question where I use the script in the accepted answer: https://stackoverflow.com/a/51933920/3737177
I manage to download the exe via a ps1 script, but it seems it is corrupt. If I compare it to a file downloaded through the browser they look the same. Same file version, same SHA, but the one downloaded with a script gets an error:
If I try to execute it from the script ".\ChromeStandaloneSetup.exe /install" there is some more information, but this doesn't help either:
Any ideas, why this exe is corrupt when downloaded through PowerShell? Or rather how to fix it?
I tried it with PowerShell V4.0 and 5.1, so the Invoke-WebRequest is used.