I am trying to figure out how to do this and am not having much luck. What i am trying to do is something like this.
Function Example-function{ param ( [Parameter(Mandatory=$True,Position=1)] $count ) } #function code here } Example-function 1 a Example-function 2 a b Example-function 3 a b c
Is this something a need to use Dynamic Parameters for? If so could someone give me a super simple example of this working?
Thanks
submitted by /u/justusiv
[link] [comments]
The post Function that uses more parameters based on the first parameter appeared first on How to Code .NET.