public/Set-CsDefaultStore.ps1

<#
.SYNOPSIS
    Set the path to the default CredentialStore
.DESCRIPTION
    The Set-CsDefaultStore cmdlet sets the path to the default CredentialStore.
    This path is not persisted across powershell sessions.
.PARAMETER FilePath
    Specifies the path to the CredentialStore file.
.LINK
    https://github.com/fodonnel/CredentialStore
#>

function Set-CsDefaultStore {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true, Position = 0)]
        [Alias("File")]
        [string] $FilePath
    )

    $Script:DefaultCredentialStore = $FilePath
}