Public/Restore-PSRunParentSelector.ps1

<#
.SYNOPSIS
Requests a restoration of the parent selector menu from a function or ScriptBlock entry.
 
.DESCRIPTION
Requests a restoration of the parent selector menu from a function or ScriptBlock entry.
If a function or ScriptBlock returns after calling this function, the parent selector menu opens again with the previous context. This is used to create nested menus.
 
.INPUTS
None.
 
.OUTPUTS
None.
#>

function Restore-PSRunParentSelector {
    [CmdletBinding()]
    param()

    Write-Warning -Message 'Restore-PSRunParentSelector is deprecated. If a selector/prompt is returned by the Backspace key on an empty query, the parent selector is automatically restored.'
}