How to use sensitive value inside scriptlet?

Hello,

Is there a way to use Encrypted variable inside a scriptlet?

Indeed, I've an input marked as sensitive that contains a shell command.

I need to split this sensitive command into a shell exec array, and then insert this array into a json : i.e :

input variable : bash -c "echo hello" 

expected result: {"Exisiting_json":...,"cmd":["bash","-c","echo hello"]}

Actual result : {"Exisiting_json":...,"cmd":["{ENCRYPTED} ...."]}

(obviously, i will mark the expected result as sensitive too)