Using Powershell to create an Active Directory user account? Maybe you need to check to see if the samaccountname already exists? Perfect then, here’s your powershell script to check it.
http://gallery.technet.microsoft.com/ScriptCenter/en-us/ab137ae7-e674-407e-87d3-8f76d4cfccb0