Public/Add-PSRunFavoriteFile.ps1
<#
.SYNOPSIS Adds a favorite file. #> function Add-PSRunFavoriteFile { [CmdletBinding()] param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [String]$Path, [Parameter(ValueFromPipelineByPropertyName = $true)] [String]$Icon, [Parameter(ValueFromPipelineByPropertyName = $true)] [String]$Name, [Parameter(ValueFromPipelineByPropertyName = $true)] [String]$Description, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]]$Preview ) process { $script:globalStore.fileSystemRegistry.AddFavoriteFile($Path, $Icon, $Name, $Description, $Preview) } } |