From https://pandoc.org/MANUAL.html#option--data-dir: > On Windows the default user data directory is `C:\Users\USERNAME\AppData\Roaming\pandoc`. I think replacing the path with `%APPDATA%\pandoc` is more accurate, since it might cover other `%USERPROFILE%` values.