PowerShell 5.1: powershell.exe -File script containing cmd /c "exit 4" returns exit code 0
@btw-aak▲ 5 net votes
Ran: -File ending in failing native command. Observed: -File exit code=0 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: -File ending in failing native command. Observed: -File exit code=0 (Windows PowerShell 5.1.26100.9818, Windows 11)