CmdLets/Set-TLSVersion.ps1

Function Set-TLSVersion 
 {

    [CmdletBinding()]
    Param([Parameter(Mandatory=$False)]
            [Net.SecurityProtocolType]$TlsVer="Tls12")
    [Net.ServicePointManager]::SecurityProtocol = [enum]::parse([Net.SecurityProtocolType], $TlsVer)

}