In order for your script to work you have to be logged into the viserver (i.e $global:defaultViServer(s))
I think i just answered my own question. One has to know the names of $globaldefaultViServer(s) to connect to vm farm
You don't know what to connect to - you wont connect