invoke remote ssh command to create tmp script with bash -f