Connect to a running Slicer session

Is there a way to connect to a running Slicer session from a standalone script?

Given I have Slicer open
And I have an image open in Slicer
And I have a python script resting on my desktop
When I execute the python script
Then the script connects to the running slicer
And performs a python action on the opened image
And I see the result on the Slicer screen

But I didn’t use Slicers python interpreter nor I passed the script to slicer as a parameter during launch

After a bit more research I guess this is not how slicer or python works.