For me on Ubuntu "sudo -iu" doesn't work, but "sudo -i" does. To keep it open I have to add bash to the end of the script and you'll get a shell open to the password prompt.