Gradle script problem

I tried to install Gradle Script on my laptop. But after that, Windows working very abnormally. One of my friends suggested me to reset windows to solve the problem. So I thought to use command prompt factory reset windows 10. But I couldn’t do that anymore. What should I do now?