Need help to get special information from user as powershell script

Hello Community. 

Following problem i have.

We useing Blackberry Server as MDM.

I need a script that get the Username which have activated Blackberry UEM Android for Wor, Blackberry Work Dynamics and Blackberry allowExport Contacts.

Those information is in AD User.

It should be exported in CSV file.

For Example:

Username OU edsva_KBApps_UEM_Afw edsva_KBApps_UEM_Dynamics edsva_KBApps_UEM_Dynamics_allowExportContacts
Tom KLA Yes No No
Jones KFA No Yes No

How i can get the information?

Thanks in advance and for help.

Best Regards Eduard