You can use the MDM Hub user name to run jobs in MDM Hub and you can get the encrypted password using
get_encr_pwd
script.
You must register the MDM Hub user name that you have used to run jobs in the MDM Hub and must have access to the Operational Reference Store (ORS). The MDM Hub user name requires create and update rights to most configured MDM Hub objects, because you use the MDM Hub user name to run jobs. The admin user enables the MDM Hub user name as service user. If the service user password does not match the admin user password, the admin user sets the service user password to expired or changed.
The MDMExecuteBatch class accepts encrypted passwords.
For example, the following sample command encrypts the clear text password