CmdID / PowerShell / Cmdlets / Get
Get-MgEnvironment
When you use Connect-MgGraph, you can choose to target other environments. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 1 parameter Its page in the reference
Parameters
-NameThe environment name.