Auto generate password if needed

script will autogen a password if none is given. If you want to force a
specific password, just pass it as the third argument.