UtilsCountry.types.ps1xml

<?xml version="1.0" encoding="utf-8"?>
<Types>
    <Type>
        <Name>UtilsCountry</Name>
        <Members>
            <PropertySet>
                <Name>DefaultDisplayPropertySet</Name>
                <ReferencedProperties>
                    <Name>Country</Name>
                    <Name>Status</Name>
                    <Name>Name</Name>
                </ReferencedProperties>
            </PropertySet>
            <ScriptProperty>
                <Name>ContinentLastSegment</Name>
                <GetScriptBlock>($this.Continent.Segments | Select-Object -Last 1)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>LanguageLastSegment</Name>
                <GetScriptBlock>($this.Language.Segments | Select-Object -Last 1)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>ClassificationLastSegment</Name>
                <GetScriptBlock>($this.Classification.Segments | Select-Object -Last 1)</GetScriptBlock>
            </ScriptProperty>
            <ScriptProperty>
                <Name>StatusLastSegment</Name>
                <GetScriptBlock>($this.Status.Segments | Select-Object -Last 1)</GetScriptBlock>
            </ScriptProperty>
        </Members>
    </Type>
</Types>