Public/Set-SimpleSettingConfigurationFile.ps1
function Set-SimpleSettingConfigurationFile { [CmdletBinding()] param ( [Parameter()] [String] $Path = $null ) if ($null -eq $Path -or $Path -eq "") { Write-Error -Message "No Path provided" } else { $env:SIMPLESETTINGS_CONFIG_FILE = $Path } if (-not (Test-Path $env:SIMPLESETTINGS_CONFIG_FILE)) { "{}" | Set-Content $env:SIMPLESETTINGS_CONFIG_FILE } Write-Verbose -Message "Configuration File set to '$env:SIMPLESETTINGS_CONFIG_FILE'" } |