Functions/Get-List.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function Get-List {
    <#
.SYNOPSIS
    Returns an array given an indeterminate number of command line arguments.
.DESCRIPTION
    Returns an array given an indeterminate number of command line arguments.
.EXAMPLE
    $Colors = Get-List blue red green
 
    Creates an array of 3 string elements: 'blue', 'red', 'green'
.NOTES
    Source Windows PowerShell in Action, 2nd edition, page 239, function ql
#>


    $args
}