functions/temp/Get-PSFTempItem.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
function Get-PSFTempItem { <# .SYNOPSIS List existing temporary items. .DESCRIPTION List existing temporary items. .PARAMETER Name Name of the item to filter by. Defaults to '*' .PARAMETER ModuleName Name of the module to filter by. Defaults to '*' .EXAMPLE PS C:\> Get-PSFTempItem List all existing temporary items. #> [CmdletBinding()] param ( [Parameter(ValueFromPipelineByPropertyName = $true, ValueFromPipeline = $true)] [string] $Name = '*', [Parameter(ValueFromPipelineByPropertyName = $true)] [string] $ModuleName = '*' ) process { ($script:tempItems.Get($ModuleName, $Name)) } } |