Public/Operations/Get-EdenServiceUrlPublicLocal.ps1

function Get-EdenServiceUrlPublicLocal
{
    [CmdletBinding()]
    param(
        # The name of the local or global settins file to pass to the Eden script.
        [Alias("sn")]
        [String]$SettingsName
    )

    $location = Get-Location

    try {

        $settings = Get-EdenSettings -Name $SettingsName

        $loggingPrefix = "$($settings.SolutionName) $($settings.ServiceName) Test Unit"

        Write-EdenInfo "Getting the local service health." $loggingPrefix
        $result = Invoke-EdenLocalCommand "Get-ServiceUrlPublicLocal" $settings $loggingPrefix
        return $result
    }
    catch
    {
        Write-EdenError "Error getting the local service health. Message: '$($_.Exception.Message)'" $loggingPrefix
        # throw $_
    }
    finally {
        Set-Location $location
    }
}
New-Alias `
    -Name e-hupl `
    -Value Get-EdenServiceUrlPublicLocal `
    -Force