Export/Private/Get-D365BCPublisherFromFile.ps1

function Get-D365BCPublisherFromFile {
    [CmdletBinding()]
    <#
    .SYNOPSIS
        ...
    .DESCRIPTION
        ...
    #>

    param(
        [parameter(Mandatory = $true)]
        [string]
        $Filename
    )
    begin {
        Import-D365BCNecessaryModule
    }
    process {
        if (-not(Test-Path $Filename)) {
            throw "$Filename does not exist."
        }
        Write-Verbose "Getting information from $Filename"
        $info = Get-NAVAppInfo -Path $Filename
        $info.Publisher
    }
}
Export-ModuleMember Get-D365BCPublisherFromFile