Gradlew.bat won't work

I’m trying to make a minecraft mod, but to do so I need gradlew.bat, but it gives me this error

this is the error i get, I don’t know how to fix it.

Well, do as the error advised and run with --stacktrace and / or --info to get more information?
Also, better provide copy & paste within code tag, instead of screenshots.