次のようなスクリプトの行が必要です。
if (results from PowerShell command not empty) do something
PowerShellコマンドは基本的に
powershell -command "GetInstalledFoo"
試しif (powershell -command "GetInstalledFoo" != "") echo "yes"ましたが、エラーが発生します-command was unexpected at this time.これは可能ですか?このコマンドは、最終的にはへのコマンドとして実行されcmd /kます。