# Get all child items in the Script path and exclude the Deploy script (if present.) $Functions = Get-ChildItem -Path $PSScriptRoot\*.ps1 -Recurse | Where-Object { $_.BaseName -notmatch '.Tests' } ForEach ($Item in $Functions) { . $Item.FullName }