Decrypt value in process task "PowerShellComponent - Execute Script"

Hi,

I'm trying to execute script from process task "PowerShellComponent - Execute Script" for executing command on Exchange server.

In parameter "StartScriptOrPath" I create remote PS session, so I need password from connector here, and I take it using: Connection.GetSingleProperty("DPRSystemVariable","Value", "Name = N'CP_Password'" )

It works when password in connector is not encrypted. 

But after encrypting the database this process stopped working, However field "Partial Encrypted" was checked.

Default processes which use this encrypted password work fine, so I'm sure that JS can decrypt this password. For example Mailbox-Disable is working.

May be I should use encrypted value in special manner in my script ?