How to write the batch file of multitask by the script?

If I have many tasks (such as mesodyn, DPD), how to write the batch file of multitask by the script? I want to automatic calculate next task when previous task finished, not by manual; and not want to calculate several tasks at one time. Thank you !