Hey guys, I was reading a thread on here earlier about creating a bat file to automatically mux subtitles and mkv files together.

I found a script in the thread and it works great, however, I would also like to be able to mux xml chapter files into the video.

What is the best what to go about doing this?

Here is the script https://pastebin.com/Xqu2ZA7m

Any help is much appreciated, thank you