Since passwords can only be changed through the account control panel, you will need an HTTP client library to authenticate with the account control panel and change the password, just like your browser does.
You’ll need to learn how to use cURL and how HTTP works if you don’t already. Once you have that down, you have to use cookies to maintain a session after authenticating long enough to put in the request to change the password. Your script would also have to intepret HTML enough to determine if there was an error too. And since there is no API for the account control panel, you’re basically at the mercy of DreamHost and hope they don’t change the way it works or your script will break.
It can be done. Good luck!
[color=#6600CC]Atropos[/color] | openvein.org