Andrei published on PowerGUI.org a bunch of how-to’s to Active Directory management with PowerShell:
How can you set any arbitrary AD attribute with PowerShell
my time with powershell if you are new to powershell click on the mission link to setup your enviroment