Sending out Password Expiration mails to users in Active Directory

I was tasked with writing a script that would send out an e-mail to users, when there were 14,7,3,2 and 1 days before their AD passwords expired.

I use the Quest AD cmdlets to get users from AD.