## 事象 [[Windows]]のみで発生していそう。 例えば[[Docker]]の場合。 ```yaml cmds: - docker ps | grep hoge ``` ```console exec: "com.docker.cli": executable file not found in %PATH% ``` ## 原因 [[Windows]]では対応できないコアコマンドがあるから。 - [executable file not found in $PATH \(windows\) · Issue \#272 · go\-task/task](https://github.com/go-task/task/issues/272) ## 対策 [[Bash]]ファイルを別途作成し、`bash`コマンド経由で実行すると動く。ただし、[[Windows]]なので、[[WSL]]など[[Bash]]が動作する環境が必要。 ```yaml cmds: - bash ./hoge.sh ``` ```bash:hoge.sh docker ps | grep hoge ```