And it works good, I can send different credentials in a batch mode.
But the problem is that the password is explicitly passed in the bat file.
Is there an option to use an encrypted password that will be decrypted in the workflow?
I would suggest a more reasonable approach: KNIME Community Hub Team plan for scheduling workflow executions or running ad-hoc jobs. And KNIME Business Hub enables you to turn your workflows into web applications (DataApps) or web services in addition to that.
In both solutions, you don’t need to expose your credentials as a plain text and even better, with KNIME Business Hub, you have the Secret Store where you can store your credentials safe and retrieve them in the workflows securely.