Types/PSModuleInfo/get_Extension.ps1

<#
.SYNOPSIS
    Gets Extended Commands
.DESCRIPTION
    Gets Extended Commands for this module
.EXAMPLE
    (Get-Module PipeScript).Extensions
#>

if (-not $this.'.ExtendedCommands') {
    Add-Member -InputObject $this -MemberType NoteProperty -Name '.ExtendedCommands' -Value @(
        $this.FindExtensions()    
        $this.FindExtensions(($This | Split-Path))        
    ) -Force
}
$this.'.ExtendedCommands'