title: mvn -version not working in TFS
body: <p>I have TFS 2012 R2 server as TFS build machine. I a using TFS 2015.2 version. I need to use maven command. I have set path for maven and Java and also updated it in path variable also. I am able to execute maven command in powershell in the server (build machine). </p>
  
  <p>But when I try to execute the same in TFS build definition using powershell inline plugin, it throws me error that mvn is not a recognized command. And when I enter the full path of maven, then it does not fetch me any output.</p>
  
  <p>When I give:</p>
  
  <p>mvn -version</p>
  
  <p>I get following error:</p>
  
  <p>The term 'mvn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.</p>
  
  <p>When I give:</p>
  
  <p>C:\apache-maven-3.3.9\bin\mvn -version</p>
  
  <p>It gives no output</p>
  
  <p>I am not sure, what am I doing wrong. It works well when I execute this directly in server but fails in TFS.</p>