title: How to run all unit test cases in PowerShell script
body: <p>I have a Solution having 8 to 9 different projects. Among them 1 is Unit Test Project. Everything working properly. But my question is how can I run all my UNIT TEST cases in PowerShell script ?</p>
  
  <p>I got a solution here <a href="https://stackoverflow.com/questions/3961633/how-to-run-all-tests-in-my-solution-using-command-line-mstest-exe/#answer-33942154">How to run ALL tests in my solution using command line MSTest.exe?</a></p>
  
  <p>You can see @Gabrielius gave 1 solution. But I'm always getting this error,
  mstest : The term 'mstest' is not recognized as the name of a cmdlet,...</p>
  
  <p>Note: I have already MSTest.exe in my laptop, bellow folder
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE</p>
  
  <p>My UnitTest project dll is in this folder</p>
  
  <p>E:\Company projects\BWS\Main\BWS.Ins\BWS.Ins.UnitTest\bin\Debug\</p>
  
  <p>In my UNIT TEST project I have 2 folder. 1 is test cases for ASP.Net MVC Controllers and 2nd one is for API.
  Please any help for how can I run all the cases (which are in different folders) from powershell.
  Thanks in advance.</p>