sharepoint online – Share a site with a Microsoft security group using PowerShell

On a SharePoint Online site, you can access this menu through Site Permissions -> Advanced Permissions Settings -> Grant Permissions.

enter image description here

I have a Microsoft security group created, and my goal is to give this group Full Control of these sites without making the group a member of the site. I can share the site in this way using the menu above, but is there a way to do this using PowerShell?