How to create Dynamic membership rules for groups in Azure Active Directory from powershell

Somebody know if it is possible to how to create Dynamic membership rules for groups in Azure Active Directory from powershell instead of passing from “Rule builder in the Azure portal” ?

Thank you

The Microsoft Graph PowerShell SDK has a -MemberShipRule parameter for New-MgGroup and Update-MgGroup