However, even though i specify no password on the command, the script does not wait for a user input and just carries on regardless and errors out. What would be a better, generic way of doing this ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results