public/Get-OSDeployModulePath.ps1

function Get-OSDeployModulePath {
    <#
    .SYNOPSIS
        Returns the base directory path of the OSDeploy module.
 
    .DESCRIPTION
        Returns the file system path to the root folder where the OSDeploy module is installed.
        This is useful for locating module-relative resources such as catalogs, templates, and support files.
 
    .OUTPUTS
        System.String. The absolute path to the OSDeploy module directory.
 
    .EXAMPLE
        Get-OSDeployModulePath
 
        Returns the path to the OSDeploy module directory, e.g. 'C:\Program Files\WindowsPowerShell\Modules\OSDeploy\1.0.0'.
    #>

    [CmdletBinding()]
    [OutputType([System.String])]
    param ()

    Write-OSDeployBanner
    $MyInvocation.MyCommand.Module.ModuleBase
}