title: What's the better (cleaner) way to ignore output in PowerShell?
body: <p>Let's say you have a method or a cmdlet that returns something, but you don't want to use it and you don't want to output it. I found these two ways:</p>
  
  <pre><code>Add-Item &gt; $null
  
  [void]Add-Item
  
  Add-Item | Out-Null
  </code></pre>
  
  <p>What do you use? Which is the better/cleaner approach? Why?</p>