Control LibreOffice from an app running in another OS process?

Is it possible to control an instance of LibreOffice running in one OS process from a node.js application running in a different OS process? Right now my application process is spawning LibreOffice to edit a file, but without
the ability to programmatically issue commands to LibreOffice to load/save/close LO documents.