Wrapping an existing command Send-MailMessage using splatting
Here is a simple way to add parameters to an existing command when you do not need nor want to overwrite the function name: Create a new function Add the new parameter(s) at the beginning of the parameter list use “ValueFromRemainingArguments” to collect the parameters you want to send to […]