UtilsLanguage.types.ps1xml
<?xml version="1.0" encoding="utf-8"?>
<Types> <Type> <Name>UtilsLanguage</Name> <Members> <PropertySet> <Name>DefaultDisplayPropertySet</Name> <ReferencedProperties> <Name>Language</Name> <Name>Classification</Name> <Name>Status</Name> </ReferencedProperties> </PropertySet> <ScriptProperty> <Name>LanguageLastSegment</Name> <GetScriptBlock>($this.Language | Foreach-Object { ([uri]::new($_)).Segments | Select-Object -Last 1})</GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>ClassificationLastSegment</Name> <GetScriptBlock>($this.Classification | Foreach-Object { ([uri]::new($_)).Segments | Select-Object -Last 1})</GetScriptBlock> </ScriptProperty> <ScriptProperty> <Name>StatusLastSegment</Name> <GetScriptBlock>(([uri]::new($this.Status)).Segments | Select-Object -Last 1)</GetScriptBlock> </ScriptProperty> </Members> </Type> </Types> |