Execute Bash Via SSH
ssh ${DB_SERVER_USER}@${DB_SERVER} "bash -s $DB_INSTANCE_NAME $USR_NAME $USR_PSW" < compileInvalidObject.sh
ssh root@MachineB 'echo "rootpass" | sudo -Sv && bash -s' < local_script.sh