Public/Set-Config.ps1

<#
    .SYNOPSIS
    Set the script level configuration
 
    .DESCRIPTION
    Sets the script level configuration
 
    .INPUTS
    None. You cannot pipe objects to Set-Config.
 
    .OUTPUTS
    None.
 
    .PARAMETER Config
    The configuration object
#>

function Set-Config {
    param([PSObject]$config)
    Set-Variable -Name __config -Scope Script -Value $config
}