#$requesturi = $ret.Headers.Location # Windows PowerShell(powershell.exe) (Invoke-RestMethod -uri $requesturi -Headers $headers -Method Get).template | ConvertTo-Json | % Replace "\u0027" "'" | Set-Content "~\export-template.json" # PowerShell (pwsh) #(Invoke-RestMethod -uri $requesturi -Headers $headers -Method Get).template | ConvertTo-Json | Set-Content "~\export-template.json" notepad $env:USERPROFILE\export-template.json