I have a small shell script that installs Brew if it is not already installed.
Brew
#!/bin/bash -v which -s brew i