function Set-LevelSwitch {
        Sets minimum level of given level switch
        Sets minimum level of given level switch.
    .PARAMETER LevelSwitch
        Instance of LoggingLevelSwitch to change
    .PARAMETER MinimumLevel
        Sets current minimum level, below which no events should be generated
    .PARAMETER ToPreference
        Set to propagate desired minimum level to preference variables.
    .PARAMETER PassThru
        Outputs Serilog.Core.LoggingLevelSwitch with updated MinimumLevel into pipeline
        Instance of LoggingLevelSwitch
        Instance of LoggingLevelSwitch with altered minumum logging level
        PS> $levelSwitch | Set-LevelSwitch -MinimumLevel Information
        PS> $levelSwitch = Set-LevelSwitch -LevelSwitch $levelSwitch -MinimumLevel Information

        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [Parameter(Mandatory = $true)]
        [Parameter(Mandatory = $false)]
        [Parameter(Mandatory = $false)]

    $LevelSwitch.MinimumLevel = $MinimumLevel

        Set-LogLevelToPreference -LogLevel $MinimumLevel