Yes but this "bold" // var vm = VcVirtualMachine() ; in a code below is
System.log("VM: " + vms);
Server.log("VM: " + vms);
// var vm = VcVirtualMachine() ;
vm = vms.shift(); // Returns the first item within the vms array
System.log("VM: " + vm.name);
Server.log("VM: " + vm.name);cpuCount = vm.summary.config.numCpu;
memoryMB = vm.summary.config.memorySizeMB;
not necessary, because vms is an object passed from STEP1 "get virtual machine by name" workflow
So I used only
vm = vms.shift();