I am working on a powershell script that accepts the following data type:
[Microsoft.ActiveDirectory.Management.ADAccount]
I cannot seem to figure out how to get it to `Import-Module ActiveDirectory` in order to handle this.
If you import AD before you run the script it works, but they dynamic import in PS 3 doesn't seem to support auto-importing based on data type. And if I try to add `Import-Module Active Directory` at the top of the script it breaks the script.
Any ideas?