cmake problems with MSBuild.exe

The general steps would be to:
Open Visual Studio
Generate a new project with the Console App project (Prints “hello world” to console)
Open the “Developer Command Prompt”
Navigate to where the project .sln was created
Run MSbuild.exe ConsoleApplication1.sln
Watch it build the solution.

This is what I did for Visual Studio 2019 to run MSBuild.exe.
.