Misc/Get-NavVersionFromVersionInfo.ps1

function Get-NavVersionFromVersionInfo {
    Param(
        [Parameter(Mandatory=$true)]
        [string]$versionInfo
    )

    $versionInfoArr = $versionInfo.Split(".")
    $verno = ($versionInfoArr[0]+$versionInfoArr[1])

    $versions  = @{
        "70"  = "2013"
        "71"  = "2013r2"
        "80"  = "2015"
        "90"  = "2016"
        "100" = "2017"
        "110" = "2018"
    }

    return $versions[$verno]
}
Export-ModuleMember Get-NavVersionFromVersionInfo