Ben Armstrong wrote a new script. This time it calls the Virtual Server COM interface for CPU history tracking:
Set objVS = CreateObject(“VirtualServer.Application”)
set objVM = objVS.FindVirtualMachine(WScript.Arguments(0))
Set colAccountants = objVM.Accountanti = 1
For Each intCPUUtilization in colAccountants.CPUUtilizationHistory
Wscript.Echo i & “: ” & intCPUUtilization
i = i + 1
Next
Read the original post for updated and comments.