how to change root password using shell script with standard password

Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.

which is the easy scripting to learn for the beginner, Thanks in advance.

Just thoughts (Im still half asleep...):

Who will you be when you change the password?
1) Root, in that case why want to change the password with a script when you only have to type passwd?
2) a user, in that case, have you a little idea what this means? (security concern...)

its development server, i need install 3rd party software for 30 servers. i m creating control file with standard password. Using same password i need to install servers. after installation put back to original password

ex:
1)cp -p /etc/shadow /etc/shadow.old
2) change the root passwd
3)install the 3rd party software
4) after installation put back the original shadow file
5) cp -p /etc/shadow.old /etc/shadow