I think the fast way might be that you have to debug batch file on your computer because almost every computer environment are different.
What I suggest to do is that using “REM” comment out the first line, “@echo off” , in GenerateProjectFiles.bat, then checking the which command is failed. You also need to comment out “@echo off” in “%~dp0Engine\Build\BatchFiles\XXXX.bat” files too.
Good luck.