types/FileInfo.Types.ps1xml

<?xml version="1.0" encoding="utf-8" ?>
<Types>
    <Type>
        <Name>System.IO.FileInfo</Name>
        <Members>
            <ScriptMethod>
                <Name>SHA512</Name>
                <Script>
                    (Get-FileHash $this.FullName -Algorithm 'SHA512').Hash
                </Script>
            </ScriptMethod>
            <ScriptMethod>
                <Name>SHA256</Name>
                <Script>
                    (Get-FileHash $this.FullName -Algorithm 'SHA256').Hash
                </Script>
            </ScriptMethod>
            <ScriptMethod>
                <Name>SHA1</Name>
                <Script>
                    (Get-FileHash $this.FullName -Algorithm 'SHA1').Hash
                </Script>
            </ScriptMethod>
            <ScriptMethod>
                <Name>MD5</Name>
                <Script>
                    (Get-FileHash $this.FullName -Algorithm 'MD5').Hash
                </Script>
            </ScriptMethod>
        </Members>
    </Type>
</Types>