CmdLets/Find-LibraryApplication.ps1
|
Function Find-LibraryApplication { [CmdletBinding()] Param( [Parameter(Mandatory=$True,ValueFromPipeline=$True)] [String[]]$Name ) Begin { If (!($Global:AppLibrary)) { Throw "Application Library has not been intitialized. Please run Intitialize-Library" } $Applications = @() } Process { $Applications += $Global:AppLibrary | Where-Object { $_.Name -like $Name} } End { $Applications | Select-Object -Property Name } } |