Changing which bash scripts are using

New Contributor II

Hello all, I am trying to change which bash is used in scripts but having no success.

I tried changing the shebang to:

#!/usr/bin/env bash
and changing the path to start with the folder of the correct path, but I still get the normal bash.
I tried exporting that path on a lot of places to make sure root uses that path first.
I even tried to change the shebang directly to the new bash path, did nothing.
Is there a setting in Jamf that changes that? Or am I missing something?