ERROR: Failed to harvest environment variables

The bat file does not exist in my temp folder. Where can I get the code for the .bat? Does Unreal generate it at some point?

And why is a file required for the compiler to run properly located in a temp folder?