Get-Process | Sort CPU -descending | Select -first 10 @{l="Time";e={get-date}},ID,ProcessName,CPU
添加计算属性的语法是
@{ - start a script block
l = 'label'; - choose a label for the property (not mandatory)
e = {expression} - formulate the expression you like evaluated
} - close the script block
您可以像这样向输出添加计算属性
添加计算属性的语法是