Here is the code. As I am new to batch script I cannot understand why .lock is used and why it is less than equal to 9.
set "lock=%temp%\wait%random%.lock"
start "" cmd /c 9>="%lock%1" abcd.bat 4441 %tempdate%
start "" cmd /c 9>="%lock%2" pqrs.bat 4442 %tempdate%
for %%N in (1 2 3 4 5 6 7 8 9) do (
9>="%lock%%%N" || goto :Wait
) 2>nul