never-displayed
View discussion in a popup
That code doesn't have a problem as far as I can see.
But then this is probably not the code you ran since the line number in the error doesn't correspond.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference