title: Suppress output created by PowerShell New-Object
body: <p>Suppress PowerShell output messages new outlook application object is created?</p>
  
  <pre><code>$outlook = New-Object -ComObject outlook.application
  $outlookItem = $outlook.CreateItem("olMailItem")
  </code></pre>
  
  <p>I already tried using these approaches. They did not work:</p>
  
  <pre><code> $outlook = New-Object -ComObject outlook.application &gt; $Null
   $outlook = New-Object -ComObject outlook.application |Out-Null
   ($outlook = New-Object -ComObject outlook.application) |Out-Null
  </code></pre>
  
  <p>These are the output message that I don't want them on the screen:</p>
  
  <pre><code>Application      : Microsoft.Office.Interop.Outlook.ApplicationClass
  Class            : 5
  ...
  ...
  </code></pre>