title: Powershell' is not recognized as an internal or external command, operable program or batch file
body: <p>I am trying to run a powershell -Command to execute a powershell file as a post build event in Visual studio 2013
  But i am getting</p>
  <blockquote>
  <p>'Powershell' is not recognized as an internal or external command,  operable program or batch file</p>
  </blockquote>
  <p>error on output window and</p>
  <pre><code>Powershell -Command exited with code 9009 error
  </code></pre>
  <p>Full Error Message:</p>
  <pre><code>'Powershell' is not recognized as an internal or external command,
  10&gt;  operable program or batch file.
  10&gt;C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: The command &quot;echo &quot;C:\dev\tfs\Main\Shared\AggregationComponents\GenerateSchema.cmd&quot;
  10&gt;C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: call &quot;C:\dev\tfs\Main\Shared\AggregationComponents\GenerateSchema.cmd&quot;
  10&gt;C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: echo &quot;Move the PhoenixData namespace schema suffixing it&quot;
  10&gt;C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: Powershell -Command &quot;C:\dev\tfs\Main\Shared\AggregationComponents\MoveAndRenameXsds.ps1 'C:\dev\tfs\Main\Shared\AggregationComponents\bin\Debug\' 'C:\dev\tfs\Main\Shared\AggregationComponents\..\PublishedAnalyticsXsds' '.Aggregation'&quot;&quot; exited with code 9009.
  ========== Rebuild All: 8 succeeded, 1 failed, 1 skipped ==========
  </code></pre>