I have a simple shell script that is run with sudo as most of the script requires it, yet one of the commands in the script is a Homebrew install, which cannot be executed w
Instantiate the shell using
sudo -u $USER_NAME bash
and execute the shell script by calling,
./program.sh