Executing the Powershell Script from the Local Powershell Explorer is successful. But when am executing the same script from the PAM Process its only updating the Partial password as "MUNGE2" not fully getting Updated as "{MUNGE2}restofstring"
Release : 4.3
Component : Process Automation
Curly braces signify an object literal in Javascript - this explains why it thinks the actual parameter is just the contents of them.
To get around this, wrap the variable in single-quote characters:
'{MUNGE2}OEcgUQlETggpLQkPViAb'
Then the whole parameter is taken as expected.