People search relevance is not optimized when the Active Directory has errors in the manager reporting structure

I often see this warning reported by SharePoint Health Analyzer: People search relevance is not optimized when the Active Directory has errors in the manager reporting structure There are lots of users in our organisation so I use the Get-ADUser…