i want to run the commands one by one after one is completed but it seems like there is no way to wait till the current command gets completed