This plugin allows you to call shell commands using the right shell depending on the executing OS.
'org.jvnet.hudson.plugins:xshell:0.4'
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>xshell</artifactId>
<version>0.4</version>
</dependency>
<dependency org="org.jvnet.hudson.plugins" name="xshell" rev="0.4"/>
"org.jvnet.hudson.plugins", "xshell", "0.4"