Synchronize AD and IMS accounts

Does anyone have a PowerShell script that can be shared that will synchronize AD and IMS accounts?

I am looking to automatically create the IMS accounts for new AD accounts.

Thank you!