//Sample code from the lab modules //14.9 get list of all VM’s vms = System.getModule("com.vmware.library.vc.vm").getAllVMs(); //14.11 Loop though the vm's and log to system for each (vm in vms) { System.log(vm.name); } //15.4 create an array to hold vm names var vmname = new Array(); //15.6 Add vm names to array vmname.push(vm); //15.8 output vmname contents for (i=0;i