To prevent hung pvxwin32 or ""stranded"" sessions you could pause the command line using the timeout command. For example, if during testing the job for company abc takes 30 seconds to complete, add ""timeout /t 30"" (without the quotes) after the vi command line. This will allow the each instance of vi to complete before starting the next instance.