Public/Get-PSNeo4jConfiguration.ps1

function Get-PSNeo4jConfiguration {
    <#
    .SYNOPSIS
       Get PSNeo4j configuration values

    .DESCRIPTION
       Get PSNeo4j configuration values

    .EXAMPLE
        Get-PSNeo4jConfiguration

    .PARAMETER Source
        Get PSNeo4j configuration from the module variable, or config file. Defaults to variable
   
    
    .FUNCTIONALITY
        Neo4j
    #>

    param(
        [validateset('Variable','Config')]
        [string]$Source = "Variable"
    )
    if($Source -eq 'Config') {
        $Config = Import-Configuration -CompanyName 'NA' -Name 'NA'
        [pscustomobject]$Config | Select-Object BaseUri, Credential, As, MetaProperties, MergePrefix
    }
    if($Source -eq 'Variable') {
        $Script:PSNeo4jConfig
    }
}