PowerShell and process exit codes
Current as of PowerShell [Core] 7.2.1 PowerShell-internal use of exit codes: PowerShell-internally, where native PowerShell commands generally run in-process, exit codes from child processes that run external programs play a very limited role: Native PowerShell commands generally don’t set exit codes and don’t act on them. PowerShell has an abstract counterpart to exit codes: $?, … Read more