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:
Add-Item > $null
[void]Add-Item
Add-Item | Out-Null
What do you use? Which is the better/cleaner approach? Why?