Functions/Import-SettingsFromFile.ps1
Function Import-SettingsFromFile { [CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '', Justification='Not changed yet')] param($Settings , $file) $inputSettings = (Get-Content $file -raw | ConvertFrom-Json) Write-Verbose "------ Procesing File $file" Write-Verbose (convertto-json $inputSettings -depth 5) Merge-Settings -currentSettings $settings -newSettings $inputSettings } |