コマンドライン(Powershell)からMacro(Python)を実行する。
sample.ps1
C:\LibreOffice\program\scalc.exe
C:\LibreOffice\program\soffice.exe 'vnd.sun.star.script:a1.py$a1?language=Python&locati
on=share'
Python Scriptの置き場所
C:\LibreOffice\share\Scripts\python
参考
https://ask.libreoffice.org/en/question/40234/how-to-open-document-and-launch-python-macro-from-command-line/
https://blue21neo.blogspot.com/2016/12/libreofficecalcbasicpython.html
https://qiita.com/zanjibar/items/fa4d4c690cd07828d4f9