USE AT OWN RISK
This was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)
This script is most likely outdated.
A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!