How to use the API line to run different macros

Hi, I know there’s a screen cast and other discussion about this but they don’t explicitly explain how to do this. Can some maybe make a video or a detailed explanation of how to run the macros on the API line. I’m a total noob at the API line and I don’t how do edit the script they provide to run my macros.

I answered here: How to run macros one after the other from the command line API