If you add the Office 365 Teams trail to you tenant, and you will like to give that license to all users, this is the command you can run:
New-MsolLicenseOptions -accountskuid aarhuslo:TEAMS_COMMERCIAL_TRIAL
Get-AzureADUser | where {$_.UserPrincipalName -like "*@Domain.prefix*"} | Set-MsolUserLicense -AddLicenses $x