赞
踩
利用管道 赋值给$id
$id = Get-Process -name explorer* | Select-Object id | ForEach-Object -Process{$_.id}
$id