I was having this issue (still cannot build it but at least not having this one). Just used developer command line for visual studio and run the commands in the repo folder.
set "PGROOT=C:\Program Files\PostgreSQL\16"
nmake /F Makefile.win ----> I am still failing at this build step
nmake /F Makefile.win install