title: code.exe ignoring command-line arguments
body: <p>I hope this is an easy fix, but I couldn't find any documentation or other posts on the matter.  I'm trying to write a script (<code>cmd</code> or <code>pwsh</code>) that will launch vscode with my preferences on a portable install.</p>
  
  <p>When trying to execute vscode's <code>code.exe</code> with any arguments, it ignores them and just launches the program as if I had typed nothing else.  I'm <a href="https://code.visualstudio.com/docs/editor/command-line" rel="noreferrer">following this doc</a> in my testing.  Using alias switches doesn't work, either.  The only argument that <em>does</em> seem to process is if I include a path.</p>
  
  <pre><code>code.exe --help
  code.exe --version
  </code></pre>
  
  <hr>
  
  <p>Additionally, after launching <code>code.exe</code>, the console kind of hangs, then vscode status messages are sent to that console (even without use of the <code>--wait</code> switch).  If I close the console, vscode shuts down.  Is there a way to work around this?</p>