LibreOffice Headless and Macros

Hello out there,

Is it possible to run a Macro on a Document in headless mode?

$ libreoffice --version
LibreOffice 5.0.5.1 00m0(Build:1)

Currently I use:
$ libreoffice --invisible --nofirststartwizard --headless --norestore
"Unbenannt 1.ods" "macro:///Meine Makros &
Dialoge.Standard.Module2.Main"

Makro:

Sub Main
print "Hi, I'm macro."
print
ThisComponent.getSheets().getByIndex(0).getCellRangeByName("A1").getCel
lByPosition(0,0).CellBackColor
thisComponent.close(true)
stardesktop.terminate
End Sub

Thanks,
Christoph