Furthermore, the code can't be analyzed very well with tools. (aka gradle vs. maven)
You want to make the same change to 20 scripts? Trivial with a declarative language you can parse easily.
Non-trivial if you have code. You better have those re-factoring tools at hand.
If you environment requires complex scripts to get up and running, that is a strong hint that you are not done yet. Can it be simplified further?