I propose the following pull request with a simple change of the 'mvn.cmd' batch script:
The removed 'stripMHome' recursive function is not needed anymore.
Part of the 'mvn -version' output before this change:
Maven home: D:\develop\apache-maven-3.6.3\bin\..
Same part of the 'mvn -version' output after this change:
Maven home: D:\develop\apache-maven-3.6.3
I.e. now it's fully qualified.