Can't generate project files because "UE4 requires the NuGet Package Manager" when it is already installed

I ended up simply commenting out the line in GenerateProjectFiles.bat where it returns an error if NuGet isn’t found. I believe this is a bug.