Check the cpu.usage.average statistic of a period of the last few minutes (watch out for the -IntervalMins parameter it can produce a period slightly different to what you would expect) and if its over 99% run the CheckHighCPU function and send the results by email.
Attributed To: Jonathan Medd, Alan Renouf
URL: http://jonathanmedd.blogspot.com/2009/01/using-powershell-to-monitor-vmware.html