In advanced functions you have ValueFromRemainingArguments parameter attributed. You can designate one of your parameters to take the unbound, remaining arguments. Unfortunately, this is not available to classes at the moment. You could wrap the method calls with a function that utilizes this.
that is really good,didn;t know the parameterset .but i want to call different construct in function by different input i give
parameterset could also solve it but i want to try with class
Awesome glad @krzydoug 's docs helped. Definitely a clever use of the $Myinvocation variable and the boundparameters property. If anyone else (or even yourself) plan on using this code in the future, I might suggest adding a comment explaining the context behind the code. I find that comments help a ton when we have solutions to problems and it’s not always straight forward as to why we went with this.