The correct answer would likely be: "a script that works in any shell that comes with MacOS"
On my Mountain Lion machine, I see:
[/]:; more /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
You can specify the shell you want in the "Shell" field of the Run Script panel when you're creating your build script. It looks like this: