public/Select-FootballCompetition.ps1

function Select-FootballCompetition {

    [CmdletBinding()]
    param(

        [Parameter(Mandatory=$true)]
        [ValidateSet('europe','europe-uk','south-america','north-america','asia')]
        [string]$Continent

    )
    process{

        $ErrorActionPreference = 'Stop'

        $CompetitionLocations = Get-CompetitionContinent
        $CompetitionLocations.GetEnumerator() | ForEach-Object -Process {

            if ($_.Value -eq $Continent) {

                $_

            } # if
            
        } # foreach-object

    } # process

} # function