Msvc link.exe not found

No, I meant that you need to load vcvarsall.bat in a cmd.exe instance (to prepare the necessary environment variables), followed by calling link.exe (or any other utility from the MSVC Build Tools). I pointed to that answer as an example of how to use vcvarsall.bat, not about how to use nmake.

But yes, I agree the problem may really be with the long command line.