$ 0 0 For such things you have to work with ShellStream. In this you can expect questions, e.g. "User:", and write your answers, e.g. "admin".