AL/Get-DependencyFromEnvironment.ps1
function Get-DependencyFromEnvironment { Param( [Parameter(Mandatory=$true)] [string]$SourcePath, [Parameter(Mandatory=$true)] [string]$Name ) $dependencies = Get-EnvironmentKeyValue -SourcePath $SourcePath -KeyName 'dependencies' if ($null -ne $dependencies) { if ($dependencies -ne '') { return $dependencies | Where-Object name -eq $Name } } return @() } Export-ModuleMember Get-DependencyFromEnvironment |