How to use a custom service running on local node?

I developed a custom service on my local node.
It is running and working, but what if I want another script to make use of this service?

If I try to require the module, I get the infamous “More than one instance of bitcore-lib” error that really seems to have no solution.

Is there some other way?

I guess this is the answer I was looking for:

Now another question arises:

How do I get the Node reference of a local running node?