Issue with powershell version 3 Invoke-RestMethod