How to extend PostCommand() to accept a command that you define instead of the built-in commands?

Good morning!

Is there a way to add a command that I define into the PostCommand() queue?

I’m trying to use the PostCommand() to post the MergeSurfaces command (built-in) and then the SetElementIds method (Selection Class).

Any feedback is appreciated! Thank you!

I believe this question doesn’t matter because you can only have one command in the PostCommand() method