コマンドからpowershellコマンドを実行する
cmdからこのコマンドを実行する方法: powershell.exe "(get-process |?{$ _。Description -eq" Sysinter Process Explorer "})| select processname | out-file $ env:APPDATA \ example.txt" 私はまだこのエラーが発生します: '-eq'演算子の右側に値式を指定する必要があります。1行目:char:37 +(get-process |?{$ _。Description -eq <<<< Sysinternals Process Explorer})| プロセス名を選択| 出力ファイル$ env:APPDATA \ example.txt + CategoryInfo:ParserError:(:) []、ParentContainsErrorRecordEx ception + FullyQualifiedErrorId:ExpectedValueExpression