Powershell Try Catch Invoke Restmethod