xshell provides a set of cross-platform utilities for writing ergonomic "bash" scripts.
xshell
See the docs for more.