How to run macros one after the other from the command line API

From the screencast, I see that the powershell script is still waiting for the first macro to finish. Only when it finishes (or reaches timeout) the 2nd macro is started.