How to batch import thousands of markdown (or office) documents?

@Lukas I experimented with Pandoc, and the conversion between docx and xwiki has issues, which I will post in a new topic, I think that it may require some attention. The pandoc from docx to commonmark goes well, and then inside xwiki the syntax switch to xwiki works too. See Pandox docx to xwiki has several issues