Bash Shell Script not Working as configured

Describe the bug
So I have created a bash script that makes a curl command, parses the response, and copies that response to my clipboard. I have tested this script in terminal, as well as in BTT's script editor by clicking "Run Script Now". It works perfectly. But after assigning the script to a button on the touch bar, the button does not do anything, the script is not being executed.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
MacBook Touch Bar

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

Device information:

  • Type of Mac: Mojave
  • macOS version: 10.14.3
  • BetterTouchTool version: 2.854

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

if possible please copy & paste the widget you configured here. (cmd+c in BTT, cmd +v here)

maybe youre running in background? Uncheck that.