That worked flawlessly thanks mate, incidentally for the newer PowerCLI versions can you tell me the equivalent of ...
Add-PSSnapin VMware.VimAutomation.Core
The above is contained in all my scripts and they don't work if I am running the script from a machine containing newer versions of PowerCLI 6.3+.