Anthony Kiesel
Anthony Kiesel
I was having similar issues and this code fixed it for me.
This was quite frustrating to figure out, since I was calling my script from PowerShell core, but this postinstall script was still being called from PowerShell 5. I haven't had...
The more I look into it, I think the specific problem might occur if PowerShell 5 (or earlier) was previously specified as the script-shell. cmd.exe actually does allow "||" and...
It would have been PowerShell 6 and earlier with the problem, my mistake