I have a c# method I am loading from a dll with optional string arguments that default to null. For example
null
public void foo(string path, string
No can do in PowerShell. It doesn't support C#/VB optional parameters. It is the duty of the language calling the method to provide the default values when the programmer doesn't and PowerShell just doesn't do that.