The command terminal from the MacOs app?

The command terminal from the MacOs app?
what is the code to send to the terminal the command to execute?
I need to tap on the button in the terminal has performed a certain action
June 14th 19 at 20:37
1 answer
June 14th 19 at 20:39
For example, using AppleScript -- kosher and Orthodox.

Find more questions by tags macOSObjective-C