Portable LibreOffice and SDK

As from LibreOffice there is an SDK available to connect to LibreOffice and open/close and different functions one can perform.

But this only works for Installed LibreOffice. If I have a portable LibreOffice version or copy of an installed version from other computer, I can execute them directly.

I can rum them in invisible mode using soffice.exe --invisible. The process of LibreOffice starts but my question is that how can I connect to this running invisible process using SDK (Keeping it in mind that it is not installed version).

Bootstrap class throws in start exception. Does anyone have idea that is this possible?