add command batch factory

Signed-off-by: Dylan Borg <borgdylan@hotmail.com>