How to deal with multiple .log and .json output files from build process

And to further my confusion, if I try to specify the full path of the mvn command:

$ build-wrapper-win-x86-64.exe --out-dir aDir C:/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin/mvn
[SONARSOURCE BUILD-WRAPPER] failed to execute C:/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin/mvn: %1 is not a valid Win32 application.

it tells me it isn’t a valid Win32 application…