I\'m executing this code:
node(\'my_windows_slave\') { sh \'ls\' }
In my Windows slave I can properly execute sh command:>
sh
bat
From Jenkins docs:
Windows-based systems should use the bat step for executing batch commands.