Yes we can use Woindows 10 for execution of bash script. You need to change following things to make it enabled.
After reboot open browser and hit https://aka.ms/wslstore
will open store and install ubuntu.
Now store a shell file given below to your desktop with .sh
file extension. Example : test.sh
#! /bin/bash
echo "Hello World"
Then go to terminal or cmd or powershell of windows and run the code like below.
C:\Users\username\Desktop> bash index.sh
Hello World
So you need to write bash before the shell file and it will execute and return the value.
Suggestions