Its working now. I didnt really do anything to fix it. I tried editing the PATH by removing an item and restarting the computer, but that made things worse. No matter what change I made, “cmd.exe” could no longer be found when I ran the generator. So I copy and pasted the original PATH settings I had, restarted and then the generator ran fine. So I have no clue whats going on, but its working for now.