function nw() to open given command in a new terminal window with AppleScript