Type in password into CMD

I need to type some credentials into CMD, one is a password. In studio i am trying to convert a string to a securestring and the passing it to an variabel. I pass the variabel into a Type secure text acitivity. but when i run the acitivity the CMD says that the credentials are wrong, but they are not wrong.
When i inspect the variabel of the converted string the value is strange. I dunno if uipath passes the wrong value into CMD.

If i send the password in plaintext the CMD freezes.