Installation scripts may need to be run with elevated privileges.
To run a powershell script with elevated privileges from the terminal:
sudo <FILENAME>
Installation scripts might not run due to security settings.
To bypass powershell script security settings for a single script execution:
powershell -ExecutionPolicy Bypass -File <FILENAME>
Combining:
Install:
sudo powershell -ExecutionPolicy Bypass -File .\Install_SafetyNet.ps1
Uninstall:
sudo powershell -ExecutionPolicy Bypass -File .\Install_SafetyNet.ps1