Added error handling and user check for Homebrew installation.
Add a script to install Homebrew for a specified user.