If you only have to change your password on a single computer every 30 days then the hassle of writing a script would be more trouble than its worth, so I assume you want to change the password on many linux systems. Is that so?
You can change the password once on one system, then get the encrypted password from /etc/shadow. Then just use sed to edit the shadow file on all the other systems from a script.
Alternatively, configure all your linux systems to be part of a NIS domain, making one a NIS
master and a couple of others NIS slaves, then just change your password once.
Finally, I see there's some stuff on using LDAP with linux, so you could probably have one password for Linux and Windows like NIS, but I've never used LDAP so I might be wrong on that point.