cmd to bat