ScriptsToProcess/Init-PathInfo.ps1

$PsRootFolderName = 'Powershell'

if ($PSScriptRoot -notmatch "^(.*\\$PsRootFolderName\\)") {
    $Message = 'Could not find the Powershell root path for FpsTools. '
    $Message += "Expected a folder '$PsRootFolderName' in the PSScriptRoot path: {0}" -f $PSScriptRoot
    throw $Message
}

$PSRoot = $Matches[1]

Set-Variable FpsRoot    -Value (Join-Path $PSRoot  '4ps')     -Scope Global
Set-Variable NavPsRoot  -Value (Join-Path $PSRoot  'nav')     -Scope Global
Set-Variable AdminRoot  -Value (Join-Path $FPSRoot 'Admin')   -Scope Global
Set-Variable InitRoot   -Value (Join-Path $FPSRoot 'Init')    -Scope Global
Set-Variable ModuleRoot -Value (Join-Path $FPSRoot 'Modules') -Scope Global

Clear-Variable PsRootFolderName
Clear-Variable Matches