title: How to call a Java program from PowerShell?
body: <p>I need to call a java program (jar file )from PowerShell.
  The following code works:</p>
  
  <pre><code>java -jar $cls --js $dcn --js_output_file $dco
  </code></pre>
  
  <p>But I need to have to run the app in a process (using <code>Start-Process</code>).</p>
  
  <p>I am trying the following with no sucess:</p>
  
  <pre><code>Start-Process -FilePath java -jar $cls --js $dcn --js_output_file $dco -wait -windowstyle Normal
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Start-Process : A parameter cannot be found that matches parameter name 'jar'.
  </code></pre>
  
  <p>Any idea how to fix it?</p>