How do I call Visual Studio 2017 RC's version of MSBuild from a BAT file? : <p>Earlier versions of MSBuild could be found here: <code>%programfiles(x86)%\msbuild\&lt;version&gt;\bin\msbuild.exe.</code></p>

<p>But for Visual Studio 2017RC the path is <code>%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe</code>. The type of install: enteprise, community or professional, seems to be part of the path. And that makes it difficult to specify the correct path to msbuild in a BAT file that should work on many different computers with different versions of Visual Studio 2017.</p>

<p>What is the best way to call Visual Studio 2017 RC's version of Msbuild from a bat file?  Or from PowerShell?</p>
