I’m new in Powershell scripting and would like some help with this one.
I couldn’t find anything so far.
I have the following code:
$responseInfo = Invoke-WebRequest -Method GET -Uri $uriInfo -Headers $headers
echo "----------------------------------"
$responseInfo.Content
$nlwInfo = ConvertFrom-Json $responseInfo.Content
echo "----------------------------------"
$nlwInfo | Get-Member
echo "----------------------------------"
echo $nlwInfo.front_url
This command “$nlwInfo | Get-Member” prints the output in the console.
Is there a way to avoid the output from being printed?
Thank you
1