CMD line was incorrect, needed to use /bin/bash to run script