You probably need a little C program to do the password input, but for the life of me I can't remember how.
Age and lack of use catches up on these sort of things.
If you find the source for the passwd shell function it would prob. show how to do it.
HalfaBee