Sailpoint to powershell $env:Request and $env and other variable showing empty

these below three line fix our issue

4) Build readers without XmlUtil to reduce moving parts while debugging $sReader = New-Object System.IO.StringReader([string]$env:Request) $xmlReader = New-Object System.Xml.XmlTextReader($sReader) # 5) Construct the request/result objects $requestObject = New-Object ‘Sailpoint.Utils.objects.AccountRequest’ ($xmlReader)