$adminUPN="ABC@Test.onMicrosoft.com"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
$sfbSession = New-CsOnlineSession -Credential $userCredential
Import-PSSession $sfbSession
Get-CsTeamsMeetingPolicy | Select-Object -Property Identity, RecordingStorageMode
# Below updated code
Install-Module -Name MicrosoftTeams -Force -AllowClobber
$credential = Get-Credential
Connect-MicrosoftTeams -Credential $credential
Get-CsTeamsMeetingPolicy | Select-Object -Property Identity, RecordingStorageMode