You can also use the Get-Counter cmdlet (PowerShell 2.0):
Get-Counter 'MemoryAvailable MBytes'
Get-Counter 'Processor(_Total)\% Processor Time'
To get a list of memory counters:
Get-Counter -ListSet *memory* | Select-Object -ExpandProperty Counter
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…