functions.ps1/Get-Foo.ps1

function Get-Foo {
    [CmdletBinding()]
    param (
        $Value
    )
    
    return $script:Foo
}