You inquired about “TextObject”. This request about _GrasshopperOpen would make a good start of a new discussion.
Trying to automate Grasshopper from within a Grasshopper solution, while possible, opens several levels of issues. Be sure that you really know why you need this. The “_GrasshopperOpen” command simply accepts an argument without an option. This means that you are forced to put that one option there, and there are no additional options to call after that.
It’s possible in other cases that a developer intentionally adds hidden commands or command options. It is not possible to know which ones exist, or how to invoke them, unless the developer reveals them. In this case, there are no command options to call (that I know of).
Please start a new discussion if you need help regarding a specific command macro.