[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Get-PSRepository
Register-PSRepository -Name "PSGallery" -SourceLocation "https://www.powershellgallery.com/api/v2" -InstallationPolicy Trusted
Install-Module Microsoft.Graph -Scope AllUsers -Repository PSGallery -AllowClobber -Force
After it finishes, close that PowerShell window, open a new one, then test:
Import-Module Microsoft.Graph
Connect-MgGraph -Scopes "Policy.Read.All","Directory.Read.All","Organization.Read.All"
Get-MgOrganization | Select-Object DisplayName Get-MgIdentityConditionalAccessPolicy -Top 1