1

The following didn't parse

[x.y]::z -Param1 some_value

Is this even possible?

Emperor XLII
  • 13,014
  • 11
  • 65
  • 75
lingo_journey
  • 653
  • 1
  • 8
  • 22

1 Answers1

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.

Keith Hill
  • 194,368
  • 42
  • 353
  • 369