See to work all you need to provide bash path in global settings of jenkins as /bin/bash ..try out this...
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/g0s4kSGQn2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/08c6d591-fb2c-4303-8474-bbdef892d3a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So I am concluding that Shell script in in workflow step is not working on Windows slave.