title: In Powershell, how do I print out the data from a custom folder of Outlook(within Inbox)?
body: <p>I want to run a Powershell script against a custom folder within my Outlook inbox:</p>
  
  <p><img src="https://i.stack.imgur.com/SBJl0.png" alt="enter image description here">
  This is the query I have so far :</p>
  
  <pre><code>$outlook = new-object -com Outlook.Application
  
  $outlook.Session.GetDefaultFolder(olFolderCalendar).Parent._Folders("UFMS").Items
  </code></pre>
  
  <p>but this is giving me the error :</p>
  
  <pre><code>Missing ')' in method call.
  At line:1 char:48
  + $newFolder = $outlook.Session.GetDefaultFolder( &lt;&lt;&lt;&lt; olFolderCalendar).Parent._Folders("UFMS").Items
      + CategoryInfo          : ParserError: (CloseParenToken:TokenId) [], ParentContainsErrorRecordException
      + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
  </code></pre>