If you are unfamiliar with Arexx see the page on automation on Amiga
Since Arexx is the defacto standard for supporting remote control / automation of applications on Amiga, there's a general expectation that larger applications will have an Arexx port. Arexx can also serve as the general scripting language for your application rather than embedding a different language.
All MUI applications have ARexx port by default. See MUI documentation how to hook your own ARexx commands.