How to play level sequence using a macro library

I have an idea that when a player writes specific commands into the HUD, a level sequence starts up, but I don’t really know how to do it.
To make executing different commands easier, I sorted them in a macro library. But now I can’t play an LS. So my question is how to fix this issue and is it even possible?