Get top CPU processes via PowerShell and schedule collection via Windows Task Scheduler

PowerShell code

Get-WmiObject Win32_PerfFormattedData_PerfProc_Process | `
where-object{ $_.Name -ne "_Total" -and $_.Name -ne "Idle"} | `
Sort-Object PercentProcessorTime -Descending | `
select -First 5 | `
Format-Table Name,IDProcess,PercentProcessorTime -AutoSize

via the Geekery http://jon.netdork.net/2010/04/06/powershell-top-x-processes-using-cpu/

Task Scheduler

http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx

via The Scripting Guys