Via mql(1) as a command
You can use the mql(1) program for interfacing with Emdros. In C, this is typically done with the system() library-call. Scripting-languages such as Ruby, Perl, and Python have their own ways of calling external programs.
That having been said, it may be possible to keep the mql(1) process running, keeping an open pipe between your application and the mql(1) process. If so, the only performance-problem that remains is the parsing of the output.