slmgr /ipk <your_product_key> && slmgr /ato

Add the following command to the batch file: