How to use this excutable bash script I created called resetMaccy.sh
Download the script and navigate to the folder you saved it in using the terminal
Give it permissions by running chmod 755 resetMaccy.sh
in the terminal.
You can execute it by running ./resetMaccy.sh
However, you can setup a launchd daemon to have it run at boot
Check out the following documentation and article regarding launchd and pfiles
https://www.launchd.info
https://medium.com/@fahimhossain_16989/adding-startup-scripts-to-launch-daemon-on-mac-os-x-sierra-10-12-6-7e0318c74de1