I think it is best to create a textfile with the extension bat containing the commands you wish to execute then shell the bat file.