According to my test, if we move the step “Stop OSDDonotLogCommand” to the last step, the password contained in the command will be hidden.
The screenshot for your reference:
Best regards,
Cherry
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.