title: Team Foundation Server: Execute Powershell scripts/commands to build instead of msbuild
body: <p>I have a large number of projects (300+) and I have Powershell module commands to build these. These PS modules are wrapping MsBuild.exe and working successfully at Command Prompt.</p>
  
  <p>However, I am trying to find a way to fit these Build Commands into TFS so that I can schedule builds (Rolling builds) through TFS among team members. </p>
  
  <p>So far, I am unable to start with some suitable option to use Powershell script/commands to call from TFS instead of Msbuild.</p>
  
  <p><strong>Only Solution Guessed:</strong> is that I might need to create some OurBuild.Proj file and use Msbuild tasks to specify our Powershell commands and then set OutBuild.proj file to build in my Build Definition.</p>
  
  <p>But I'm not sure if Powershell scripts/commands can be called like that. Because those scripts would further call Msbuild.exe while setting the environment by calling "%VS100COMNTOOLS%"VsVars32.bat at start.</p>
  
  <p>Can someone please give us a head-start or point to some good tutorial/guide?</p>