Refer to the following table:
Assign to null |
$null = Expression |
$null = Get-Command |
Cast to void |
[Void](Expression) |
[Void](Get-Command) |
Pipe to Out-Null |
Expression | Out-Null |
Get-Command | Out-Null |
Redirect to null |
Expression > $null |
Get-Command > $null |