Array: Oject reference not set

The issue is the author ruined the output by including formatting commands in the function. This is easily discovered by simply inspecting the output with Get-Member

I’ve corrected the script by removing the calls to Format-Table (alias ft) and you can find it here

3 Likes