How to open document and launch python macro from command line

Hi,
I have a document test.ods. I want to open it from command line and automatically launch a python macro.
I guess the right way should be

soffice test.ods "macro:///libreoffice.ofcoursenotstandard.macroaddress"

But of course it fails massively:

soffice test.ods "macro:///pythonSamples.TableSample.createTable"

Does not do anything, while in the GUI

Tools → macro ->My Libre office macros → pythonSamples ->TableSample->createTable

will execute it nicely

Any ideas

Hallo

First edit TableSample.py line 35:

-  def createTable():
+  def createTable(*_):

after this call from Commandline:

soffice 'vnd.sun.star.script:pythonSamples/TableSample.py$createTable?language=Python&location=share'

have also a look on Scripting Framework URI Specification - Apache OpenOffice Wiki