Which PowerCLI version are you using? Do a: Get-PowerCLIVersion
The latest version at this moment is "VMware vSphere PowerCLI 5.1 Release 2 build 1012425". If you don't have this version, try to download and install it and run the script again.
Which PowerCLI version are you using? Do a: Get-PowerCLIVersion
The latest version at this moment is "VMware vSphere PowerCLI 5.1 Release 2 build 1012425". If you don't have this version, try to download and install it and run the script again.