FYI, instead of creating separate .sh files for builds that need multiple lines, you could just separate them by passing && as a parameter.
E.g., for Cordova iOS projects I use:
"cmd": ["cordova/debug", "&&", "cordova/emulate"]