@xiangli-cmu we may have batched commands in one instance. so just create a func to make it easier to execute them.
But I am not sure what if one of the command failed during execution.