Pattern: Use of reserved common parameter
Issue: -
You cannot use reserved common parameters in an advanced function.
Change the name of the parameter.
Example of incorrect code:
function Test
{
[CmdletBinding]
Param
(
$ErrorVariable,
$Parameter2
)
}
Example of correct code:
function Test
{
[CmdletBinding]
Param
(
$Err,
$Parameter2
)
}