Simple DOS batch file I figured out just now to do something multiple times.
<font class="small">Code:</font><hr /><pre>
@echo off
for /L %%n in (1,1,%1) do echo blah
</pre><hr />
Save the above code as a batch file (replace the stuff after "do" with the program you want to run). Run the batch file from the command line, with a parameter to tell it how many times to run the program. E.g. if the script is called test.bat then typing "test 5" at the command line will run the program 5 times.