Hello!
Assuming you have a properly configured Windows node (see
this).
To send scripts to Windows servers from the Linux rundeck server, you must first give a linux path containing the .bat script file, and then the script must be sent to the Windows remote node.
You can also write an inline script, which should be sent to the remote node.
In both cases, make sure to set the interpreter correctly (cmd.exe) and the file extension (.bat), those parameters are available by clicking on the "Advanced" link.
Essentially, the scripts are saved on the rundeck server and then distributed to Windows remote nodes.
If you wish to run a remote Windows script, you can use the command step calling the script stored on the Windows remote node.