I just smashed this together. Copy and paste this into Powershell. It sends a query to Microsoft for the list of IP addresses used by Microsoft Teams. Exclude these from your full tunnel VPN.
$clientRequestId = [GUID]::NewGuid().Guid
$uri = "https://endpoints.office.com/endpoints/worldwide?NoIPv6=true&clientRequestId=$clientRequestId"
$endpointSets = Invoke-RestMethod -Uri ($uri)
$Optimize = $endpointSets | Where-Object { $_.category -eq "Optimize" }
$optimizeIpsv4 = $Optimize.ips | Where-Object { ($_).contains(".") } | Sort-Object -Unique
Write-Host $optimizeIpsv4