title: groovy script for using MSTEST jenkins plugin to generate test report
body: <p>I am using Jenkins <a href="https://wiki.jenkins.io/display/JENKINS/MSTest+Plugin" rel="nofollow noreferrer">MSBUILD</a> plugin in a Freestyle project which is just fine. I have to specify the location of .TRX file and the test report gets generated.</p>
  
  <p>Now I want to use groovy command so I can take advantage of Jenkins pipeline. can someone help me with batch/groovy command to use .TRX as a input and generate test report in Jenkins UI? I tried below but no success.</p>
  
  <pre><code>mstest.exe /publishresultsfile:"C:\Path_to_file\TestResult.TRX" 
  </code></pre>
  
  <p>Below error occurs</p>
  
  <pre><code>Invalid switch "/publishresultsfile".
  </code></pre>