If you are absolutely trying to regen your project/solution files from the command line you can do so like this:
"%UE4PATH%\Engine\Build\BatchFiles\GenerateProjectFiles.bat" %~dp0\MyProject.uproject
This is the command I use from SublimeText and it works quite well, although the exact file name of the batch file for your setup may vary.