How to run .bat file from gradle task

I want to write a gradle task to run .bat file. can any one have idea, please share with us.

See the ‘Exec’ samples in the Gradle Build Language Reference.