Functions/Authentication/Use-PASSession.ps1

# .ExternalHelp psPAS-help.xml
function Use-PASSession {
    [CmdletBinding()]
    param(
        [parameter(
            Mandatory = $true,
            ValueFromPipeline = $true
        )]
        [psTypeName('psPAS.CyberArk.Vault.Session')]$Session

    )

    BEGIN { }#begin

    PROCESS {

        New-Variable -Name psPASSession -Value $Session -Scope Script -Force

    }#process

    END { }#end

}