title: conditional execution (&& and ||) in powershell
body: <p>There's already question addressing my issue (<a href="https://stackoverflow.com/questions/563600/can-i-get-to-work-in-powershell">Can I get &amp;&amp; to work in Powershell?</a>), but with one difference. I need an <strong>OUTPUT</strong> from both commands. See, if I just run:</p>
  
  <pre><code>(command1 -arg1 -arg2) -and (command2 -arg1)
  </code></pre>
  
  <p>I won't see any output, but stderr messages. And, as expected, just typing:</p>
  
  <pre><code>command1 -arg1 -arg2 -and command2 -arg1 
  </code></pre>
  
  <p>Gives syntax error.</p>