Invoke-Restmethod: how do I get the return code? Invoke-Restmethod: how do I get the return code? powershell powershell