I wrote a PowerShell script that takes a few samples of your VM CPU MHZ average. The script uses the VMware PowerShell snap-in, the output is piped to the Out-String cmdlet. The Out-String cmdlet converts the objects that Windows PowerShell manages into an array of strings. By default, Out-String accumulates the strings and returns them as a single string, but you can use the stream parameter to direct Out-String to return one string at a time. This cmdlet lets you search and manipulate string output as you would in traditional shells when object manipulation is less convenient.
Get-VIServer "virtualcenter.ntpro.local" -User Eric -Password Sloof
$VirtualMachine = Get-VM|where {$_.Name -Like "nl-nwg-xp-1"}
Get-Stat -Entity $VirtualMachine -Realtime -MaxSamples 3 -Stat "cpu.usagemhz.average" |Out-String
Name
----
virtualcenter.ntpro.local
MetricId Timestamp Value Unit
--------- ---------- ----- ----
cpu.usagemhz.average 11/23/2007 8:23:2... 28 MHz
cpu.usagemhz.average 11/23/2007 8:23:0... 31 MHz
cpu.usagemhz.average 11/23/2007 8:22:4... 29 MHz