1 Get the latest PowerShell version from https://github.com/PowerShell/PowerShell/
2 Run Powershell from the start menu
3 install the Microsoft Teams Module
By default, the PowerShell Gallery (PSGallery) isn't configured as a trusted repository for PowerShellGet. The first time you use the PSGallery, you'll see the following message:
Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the `Set-PSRepository` cmdlet. Are you sure you want to install the modules from 'PSGallery'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
Answer Yes or Yes to All to continue with the installation.
Connect using a 365 admin account
Open a Windows PowerShell command prompt window, and run the following commands:
$sfbSession = New-CsOnlineSession
You should get a 365 pop up in which you will need to enter the Global 365 admin details.
Once completed you will be able to run commands (Example below)
Get-CsOnlineUser -Identity "Alex Wilber"