powershell command to get cpu info code example
Example 1: check top cpu process with powershell
Get-Process -IncludeUserName | Sort-Object CPU -desc | Select -first 5| Select ProcessName,ID,CPU,UserName,Description | Format-Table -AutoSize
Example 2: powershell command to get cpu info
(Get-WmiObject -Class Win32_ComputerSystem -Property Name).Name