This lines:
public Collection<PSObject> InvokeScript(string script, params object[] args)
{
return InvokeScript(script, true, PipelineResultTypes.None, args);
}
Pass args parameter into input parameter of called function, thus mixing them up.
Steps to reproduce
$ExecutionContext.SessionState.InvokeCommand.InvokeScript('"`$args:($args); `$input:($input)"', 1, 2, 3)
Expected behavior
Actual behavior
Environment data
Tested in v2.0 and v5.1.15063.608
This lines:
Pass
argsparameter intoinputparameter of called function, thus mixing them up.Steps to reproduce
Expected behavior
Actual behavior
Environment data
Tested in v2.0 and v5.1.15063.608