add command and batch