Building engine from source 4.22

Trying to build engine from source. 4.22 I download 4.22 engine source version. I extracted it, then ran the setup.bat file. After that I ran the generateprojectfiles.bat and I get an error. Any help would be great.