Vs2019 (UE 4.22) GenerateProjectFiles.bat fails

When I try to run GenerateProjectFiles.bat, I get the following errors. It appears that there I’m running from the wrong command prompt on Windows. Does any have any insight as to what is going on:

GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
'"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere" -prerelease -latest -products * -requires Microsoft.Component.MSBuild -property installationPath' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7 /v 15.0 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7 /v 15.0 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7 /v 15.0 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7 /v 15.0 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKCU\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.
'REG.exe query HKLM\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath 2>Nul' is not recognized as an internal or external command,
operable program or batch file.

GenerateProjectFiles ERROR: Unable to find a valid installation of Visual Studio. Please check that you have Visual Studio 2017 or Visual Studio 2019 installed, and the MSBuild component is selected as part of your installation.

Press any key to continue . . .