title: Chain commands on the PowerShell command line (like POSIX sh &&)
body: <p>Does PowerShell have an equivalent to this command construct from <code>sh</code> (and derivatives):</p>
  
  <pre><code>$ cmd1 &amp;&amp; cmd2
  </code></pre>
  
  <p>where <code>cmd2</code> is only run when <code>cmd1</code> exits sucessfully?</p>
  
  <p>I know you can combine commands with a semicolon. However, this disregards the exit status of commands.</p>