标签: powershell
我正在尝试管理我正在动态检索的powershell命令。 例如,如果我得到这个命令对象
$ls = Get-Command 'Get-ChildItem'
如何管道任何东西?
我试过了:
'.\' | $ls
但我收到Expressions are only allowed as the first element of a pipeline的错误。
Expressions are only allowed as the first element of a pipeline