At this site, I finally found an effective solution:
script.cmd < nul
To not have to type this out every time I made a second script called script2.cmd
in the same folder with the line above. You may want to reverse the names. Works for me, but tested so far on XP only.