外部スクリプトよく呼び出すなら

ret := RunScript("
(
#!cmd
echo hello
)")
msgbox % ret ; ==> "hello"
なんてラッパー作っとくと楽だぞ