Automate sudo and password entry