function _update_batch_command