Use shell commands directly from nodejs to make synchronous shell scripts.
github.com/wballard/shellscript
wballard/shellscript