i'm agree that API is a good approach for commplex actions from any host langage
for simples actions from script (i love Take Command it's not hidden advertisement 😝), a command line front end can be very useful
i think mainly about this set of actions
- list active job/task
- start & stop job/task