The term ‘Get-MailboxFolderStatistics’ is not recognized

Solution for The term ‘Get-MailboxFolderStatistics’ is not recognized
is Given Below:

I am trying to get the first email a person SENT/RECEIVED, but I am getting a weird error message. I was wondering if someone can help me with this.

  1. I installed the module…
  2. I connect to the exchange using my admin account.
  3. I know I connected because the Get-Mailbox Mike01 works.
  4. I tried using the Get-EXOMailboxFolderStatistics but it does not work.
    Any other module I should be installing?

I tried opening PS with administrator rights, but still the same

#Import-Module ExchangeOnlineManagement

Get-Mailbox Mike01
Get-Mailbox [email protected] | 
    Get-MailboxFolderStatistics -IncludeOldestAndNewestItems | 
    ?{$_.OldestItemReceivedDate -ne $null} | 
    Select -Property OldestItemReceivedDate,Folderpath | 
    Sort -Property OldestItemReceivedDate