This is an example by @SkepticMystic pinned in the academia channel in Discord:
Here is the general command you can use to convert from Obsidian
.md
→.docx
using APA 7 referencing. Change the file paths to your needs, but keep the git URL to use APA 7.pandoc "path/to/input.md" --citeproc --csl "https://raw.githubusercontent.com/citation-style-language/styles/master/apa.csl" --bibliography "path/to/citations.bib" -o "path/to/output.docx"