HelperFunctions.psm1
#Force TLS 1.2 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue ) $Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue ) foreach ($import in @($Public + $Private)) { try { . $import.fullname } catch { throw "Failed to import function {0}" -f $import.FullName } } Export-ModuleMember -Function $Public.BaseName |