public/Set-TLS12.ps1

function Set-TLS12 {
    <#
    .SYNOPSIS
        Sets TLS channel to v1.2 for the active/current session only
    .DESCRIPTION
        Same as SYNOPSIS. I know. Shocking, right?
    .PARAMETER (none)
    .EXAMPLE
        Set-TLS12
    .LINK
        https://github.com/Skatterbrainz/ds-utils/blob/master/docs/Set-TLS12.md
    #>

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    [Net.ServicePointManager]::SecurityProtocol
}