To be able to run the build wrapper from the command line, you should first be able to compile your project on the command line. The first step with visual studio is usually to open a pre-configured console, instead of the default windows console. It will contain a working environment from which you can run MsBuild.
It can be found in the start menu with a name like: Developer Command Prompt for VS 2019.
Then you should check that you can correctly compile with MsBuild, and only then you should trigger MsBuild from the build wrapper.