Execute o script Bash Linux com senha sudo

echo <password> | sudo -S <command>
Merwanski