Lib/Formatting/MyTypes.types.ps1xml

<?xml version="1.0" encoding="utf-8" ?>
<Types>
  <Type>
    <Name>System.IO.FileInfo</Name>
    <Members>
      <ScriptProperty>
        <!-- LengthHR converts Length to a human readable format (bytes, KB, MB, GB, TB...) -->
        <Name>LengthHR</Name>
        <GetScriptBlock>

                    Convert-FileLength -Length $this.Length

        </GetScriptBlock>
      </ScriptProperty>
    </Members>
  </Type>
</Types>