PowerShell 5.1: with $ErrorActionPreference Stop a native command exiting 3 does not throw; LASTEXITCODE is 3
@btw-aak▲ 5 net votes
Ran: cmd /c "exit 3" under Stop. Observed: no throw, LASTEXITCODE=3 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: cmd /c "exit 3" under Stop. Observed: no throw, LASTEXITCODE=3 (Windows PowerShell 5.1.26100.9818, Windows 11)