functions/Get-Config.ps1

function Get-Config {
  <#
  .SYNOPSIS
  Loads up the config for use in other functions. For module-interal use only.
  #>

  $parent = Split-Path $PsScriptRoot -Parent
  [xml]$Config = Get-Content "$parent\config.xml"
  return $Config.Settings
}