This error indicates a command line syntax issue. Specifically, a reason someone might encounter this error in BatchPatch is if they are using an older version of PsExec (version 1.x), but they have the BatchPatch setting enabled to ‘Use PsExec -r switch’ under ‘Tools > Settings > Remote Execution > Use PsExec -r switch’.
The PsExec -r switch is only available in PsExec version 2 or newer. We recommend using PsExec version 2 or newer whenever possible, and we recommend using the ‘Use PsExec -r switch’ setting inside of BatchPatch. However, if you must use an older version of PsExec, make sure the ‘Use PsExec -r switch’ setting is disabled.