StartPowershellScript(script, new PowershellSettings()
.WithModule(_module)
.WithArguments(args=>
{
// other arguments here
args.AppendSecret("TaskPassword", taskPassword);
}));
The following works, but exposes the secret:
StartPowershellScript(script, new PowershellSettings()
.WithModule(_module)
.WithArguments(args=>
{
// other arguments here
args.AppendQuoted("TaskPassword", taskPassword);
}));
It appears that it might be because the secret contains space characters.
The following fails:
The following works, but exposes the secret:
It appears that it might be because the secret contains space characters.