pf-file.psm1
#Include-Start DefineModuleHeader $ErrorActionPreference = 'stop' $script:scriptFolder = Split-Path ( Get-PSCallStack )[0].ScriptName -Parent function Get-Metadata_Path { join-path $script:scriptFolder ModuleMetadata.psd1 } function Get-Metadata () { Get-Module_Metadata ( Get-Metadata_Path ) } #Include-end DefineModuleHeader . $scriptFolder\pf-file.ps1 |