Reftab PowerShell Script

Reftab has a PowerShell module which you can use as a starting point when building scripts to integrate with your AD: https://github.com/reftab