This works to export a PDF:
C:\Program Files\LibreOffice\program\soffice.exe --headless --convert-to pdf test.doc --outdir .
but it doesn't allow to change the output filename. I found the option to change the output directory, but how to change the output filename?