Public/Backup-DefaultParameterValue.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
function Backup-DefaultParameterValues {
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute(
        "PSUseSingularNouns", 
        "", 
        Justification = "The variable PSDefaultParameterValues is backed up"
    )]
    [CmdletBinding()]
    param()

    PROCESS {
        $Script:BackupOf_PSDefaultParameterValues = $PSDefaultParameterValues
    }
}