bash scripting question
This is my second day of attempting to write scripts, so I need some help.
I want to make a script to add a user to a server, set the password and then put them on some other services.
I want them to enter the command with the two necessary options being their username and their password ( I know that it's not that safe, but that is not of my concern now.)
addmyuser [name] [password]
It will do a "useradd" then try a "passwd"-- but how am I supposed to write a script that must enter something when prompted after the initial command?