我如何从 cmd 运行此命令:
powershell.exe "(get-process | ? {$_.Description -eq "Sysinter Process Explorer"}) | select processname | out-file $env:APPDATA\example.txt"
我仍然收到此错误:
您必须在“-eq”运算符的右侧提供一个值表达式。在 line:1 char:37 + (get-process | ? {$_.Description -eq <<<< Sysinternals Process Explorer}) | 选择进程名| 输出文件 $env:APPDATA\example.txt + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException +fullyQualifiedErrorId : ExpectedValueExpression