UIPath PowerShell connection to RemoteDesktop

I want to create a connection to remote desktop connection using UIPath. The connection is done using PowerShell.

It logs in to the remote server, but at the end the UIPath gives me this error.

Can someone help me solve it? It is linked to the input field.

The input of the PowerShell Activity:

“cmdkey /generic:TERMSRV/192.1… /user:admin /pass:passs… mstsc /v:192.1…”!

after the connection is created and the password is retained, the powerShell need only: “mstsc /v:server:port”

But i need the solution for the upper error in order to have all the cases covered