Update Error Logging on Invoke-rsRestMethod