title: Can I get "&&" or "-and" to work in PowerShell?
body: <p><code>&amp;&amp;</code> is notoriously hard to search for on Google Search, but the best I've found is <a href="http://www.microsoft.com/technet/scriptcenter/webcasts/psweek/day4qanda.mspx" rel="noreferrer">this article</a> which says to use <code>-and</code>.</p>
  <p>Unfortunately it doesn't give any more information, and I can't find out what I'm supposed to do with <code>-and</code> (again, a notoriously hard thing to search for).</p>
  <p>The context I'm trying to use it in is &quot;execute cmd1, and if successful, execute cmd2&quot;, basically this:</p>
  <pre><code>csc /t:exe /out:a.exe SomeFile.cs &amp;&amp; a.exe
  </code></pre>
  <hr />
  <p>If you just want to run multiple commands on a single line and you don't care if the first one fails or not, you can use <code>;</code> For most of my purposes this is fine.</p>
  <p>For example: <code>kill -n myapp; ./myapp.exe</code>.</p>