I am having data in the database. Using Powershell Invoke-RestMethod, I am trying to fetch the data. When I am trying to save the output to a Variable and print it, it is showing me invalid characters (not same as Original).
Below is the Data stored in the database
GCM – PLPD Resource RW
Here's my code
$output=Invoke-RestMethod -Method Post -Uri $WebServiceURL -Body $json -ContentType "Application/json"
Write-Host $output.OutputObject.SUBROOT
Below is my Output with Invalid Characters
@{SecurityGroupName=GCM – PLPD Resource RW}