It’s PowerShell, so you can do what you like with the code to extend it or amend it to fit your circumstances. I try to explain the principle and leave detailed implementations to those who need a solution.
]]>If the $Report is populated with data, you should be able to sort the data and pipe to the Out-GridView cmdlet with a command like:
$Report | Sort-Object DisplayName | Out-GridView
Does that not work?
]]>