Types/OpenPackage/get_FileHash.ps1

<#
.SYNOPSIS
    Gets the file hashes
.DESCRIPTION
    Gets the file hashes of each part using any supported algorithm (default SHA256)
.NOTES
    Supports any algorithm from Get-FileHash
.LINK
    Get-FileHash
#>

param([string]$Algorithm = 'SHA256')

foreach ($part in $this.GetParts()) {
    $part.GetHash($Algorithm)
}