Install the latest version of PowerShell available for your operating system. Microsoft Teams PowerShell module requires PowerShell 5.1 or higher on all platforms. The Microsoft Teams PowerShell module is supported on all Windows platforms.
This article explains how to install the Microsoft Teams PowerShell module using PowerShell Gallery.