Using batch commands with work orders