Right below the "set sharing settings at a tenant level" bullet is a link (https://learn.microsoft.com/en-us/microsoft-365/syntex/powershell-syntex-intro) to the information I think you're looking for.
But the PowerShell information you want looks to be "product specific" (i.e., SharePoint). Adding an appropriate SharePoint tag to your message would bring your question to the relevant SMEs.