On Windows using cmd.exe can be a burden. Fortunately, Jenkins allows the use of alternative shells.
A different shell can be used for each "Execute shell" build step of a job - even on Windows.
Note the inline help for the "Execute shell" build step type.
Examples of "Execute shell" build steps for Windows using Python as the shell:
Note that you can also pass parameters to the shell, like: