run_cmd function

Run command on submission node