Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
You can specify arguments as variable names. If you specify several arguments, use commas to separate them. If you have both output variables and input variables, it is good practice to list the ...