I'm trying to execute the following piece of code but i'm getting the following error which i can't figure out. Tried various variations but at a loss:
& ".\Pacli.exe" updateuser 'vault="PACLI Vault"' 'user=AWSPacli' 'destuser=UserTest' Password=$NewPassword
Pacli.exe: parse error, expecting `';'`
At line:1, char:1
Tried using Invoke-Expression and passing in the whole command as a variable but still get the same error. Not sure if it is to do with the way i am putting quotes around some of the parameters.
A previous command to this works perfectly fine:
& ".\Pacli.exe" logon 'vault="PACLI Vault"' 'user=AWSPacli' password=$PACPassword
Trying to use the PACLI for CyberArk and updating a user password in Vault.