更新时间:2021-11-03 21:51:48
不,没有这样的自动变量.
No there is not automatic variable like that.
你必须这样做:
$output = Get-Something $output $anObj = $output
获取行为
powershell是否具有关联数组?
PowerShell:上次执行结果是否有自动变量?
测试脚本是否有管理员特权,说明了在PowerShell巨大的灵活性: