Parameters for PowerShell Commands
Parameters can be usedon cmdlets, functions, and scriptsto provide additional inputby the user. As for aPowerShell command,they mainlyextend or narrow down the effect of it.
In general, parameters have in common modifying acommand,buttheir approach and effect differ, e.g.,so-called switch parameter do not require a value.(If specified, the value is true, otherwise false).
CommonParametersspecifies a set of cmdlet parameters that can be used on any cmdlet, as they are implemented by PowerShell and not the cmdletprovider/developer, making them runnable on all PowerShell Commands. Keep in mind that running into no errors does not equal results of value as someCommonParametershave no effect on some cmdlets.
Parameters can be used for much more though. In anAdvancedFunction, parameters affect the function and with arguments limit the parameter values that function users submit with the parameter.CommonParametersare also available onadvanced functionsthatmake useofone ofthe attributes„CmdletBinding„or„Parameter„.