I ended up creating a regular script and just using gradlew like i would on the terminal on my local machine which worked as intended