Functions/Get-S1ConfigureAppPath.ps1

<#
.SYNOPSIS
    Returns Application path to store files and settings
.DESCRIPTION
    SentryOne.Configure stores downloaded files and settings files in a folder
.EXAMPLE
    Get-S1ConfigureAppPath
    Returns the default path or what has been configured
.INPUTS
    None
.OUTPUTS
    string path
.NOTES
#>

function Get-S1ConfigureAppPath {
    [CmdletBinding()]
    param()    

    process {
        if ("$env:S1CONFIGUREAPPPATH" -eq "")   {
            return [IO.Path]::Combine($env:LOCALAPPDATA,"SentryOne.Configure")
        }      
        else{
            return $env:S1CONFIGUREAPPPATH
        }
    }
    
}