batch commands into a single exec() call