Hi Marc,
>It's a FP/DOS.
One approach would be to generate a VBS script and then use RUN CSCRIPT.EXE to execute the script. In VB Script you can instantiate COM servers. Drawback is that you would create a new instance of the COM server with every call. It's cached, so it's not necessarily slow, but you likely cannot persist any state.
If you feel like writing in assembler, you could also create a BIN file. Windows used to have an interface that allowed DOS programs to call Windows functions via an interrupt.
http://www.qbasic.com/wbb/filebase_entry.php?entryid=191&sid=d3326aeb18001f11e6552a6e60f9ac18
--
Christof