How to fix PowerShell “FAILURE: Build failed with an exception.” in gradlew?

hello I am new to developing and I want to learn minecraft modding but when I tried to use gradlew in PowerShell and I got this:

PS D:\Programs\eclipse-workspace\Minecraft-mod> ./gradlew genEclipseRuns To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: The Gradle Daemon.

IDLE FAILURE: Build failed with an exception.

  • What went wrong: Unable to get mutable Windows environment variable map
  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    this the folder I used PS in

you can rank up your account in varlonat by using proboosting.net