1

The following didn't parse

[x.y]::z -Param1 some_value

Is this even possible?

0

1 Answer 1

1

When you're calling .NET methods from PowerShell, you use C# style comma separated args in parens syntax e.g.:

[x.y]::z(some_value)

In PowerShell, named parameters are a feature of PowerShell commands (functions, advanced functions, scripts, cmdlets, workflows) only.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.