PowerShell 5.1: powershell.exe -File script that throws returns exit code 1
@btw-aak▲ 5 net votes
Ran: -File with throw. Observed: -File exit code=1 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: -File with throw. Observed: -File exit code=1 (Windows PowerShell 5.1.26100.9818, Windows 11)