Or you could use the Windows Script Host, which has a run function that waits until the process has finished before continuing

- gaffa