If the restriction is that the GUI shouldn't be opened, then the answer is no. However, it is possible to open one instance of the GUI and script operations against that instance. This can be done either from the script tab in the UI or via JSON commands via a network socket.
The scripting tab is available under utilities. There are some template commands available, but you can call every function in the MH source code via that interface.
The socket server plugin is here:
https://github.com/makehumancommunity/c ... ins-socket (it is bundled with MH too, so you don't need to install it). Example calls are available here:
https://github.com/makehumancommunity/c ... master/cli ... However, only a small subset of what is available to MH is implementer via the socket server. If you want to do things outside this, you will have to provide an interface in the socket server source code. Essentially, write a wrapper around the corresponding MH call in, for example,
https://github.com/makehumancommunity/c ... /modops.py