powershell get exit code from exe code example
Example: powershell exit code
function ExitWithCode { param($exitcode) $host.SetShouldExit($exitcode); exit }
function ExitWithCode { param($exitcode) $host.SetShouldExit($exitcode); exit }