Write this on notepad :

Code:
@echo off
command
comand.com
pause
then save it as .bat extension and open it.