how to use extensions in command line?

I use libreoffice to convert ppt to pdf, actually use soffice.bin, as we know, the animations miss after the converting. I found a libreofffice extension (ExpandAnimations:GitHub - monperrus/ExpandAnimations: LibreOffice/OpenOffice.org extension to expand animations before exporting to PDF. Looking for maintainers.), my problem is how to use it in command line with soffice.bin

There’s nothing in LibreOffice CLI that specifically allows using extensions. One way would be using macros, which would use technique similar to proposed here.