title: Powershell Script to run exe file with parameters
body: <p>I need script to run exe file with parameters.
  That's what I wrote, if there's a better way to do it?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$Command = "\\Networkpath\Restart.exe"
  $Parms = "/t:21600 /m:360 /r /f"
  $Prms = $Parms.Split(" ")
  &amp; "$Command" $Prms</code></pre>
  </div>
  </div>
  </p>
  
  <p>thanks</p>