We are creating a script to automate a service and for that we need to call a rest service (az rest from Azure CLI). We created an object in powershell which is