mac_new_terminalwindow_run_command Windows Solution, link for d in ./*/; do (cd "$d" && echo "$d" && start sh -c "echo $d; git status;"); done; start "" "%ProgramFiles%\Git\git-bash.exe" -c "echo 1 && echo 2 && /usr/bin/bash --login -i" start "" "c:\path with spaces\app.exe" param1 "param with spaces" Mac Solution dir=pwd;for d in */ ; do (cd "$d" && echo "$d" && osascript -e 'tell app "Terminal" to do script "'"echo $($dir)"'"'); done; There must be another way, Mac and Linux? link echo "echo hello" > /tmp/tmp.sh ; chmod +x /tmp/tmp.sh ; open -a Terminal /tmp/tmp.sh