How can i make the folowing sqlplus script?

1. prompt for the password
2. checking the password is correct
3. If that is wrong, wite error message and wait for keypressing
4. If that is correct then run another sqlplus script.

Can I do it without operating system batch script?
My problem is the error handling.

Zoltán Patalenszki