public/Set-PSPagerDutyConfiguration.ps1

function Set-PSPagerDutyConfiguration {
    <#
    .SYNOPSIS
       Set PSPagerDuty configuration values
 
    .DESCRIPTION
       Set PSPagerDuty configuration values
 
    .EXAMPLE
        Set-PSPagerDutyConfiguration -Token $Credential
 
        # Specify a default token to use for PSPagerDuty commands
 
    .FUNCTIONALITY
        PagerDuty
    #>

    [cmdletbinding()]
    param(
        [ValidateNotNull()]
        [string]$Token
    )
    Switch ($PSBoundParameters.Keys)
    {
        'Token' { $Script:PSPagerDutyConfig.Token = $Token }
    }
}