How to use the API line to run different macros

I answered here: How to run macros one after the other from the command line API - #18 by ulrich