Functions/Get-String.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
function Get-String { <# .SYNOPSIS Returns a string given an indeterminate number of command line arguments. .DESCRIPTION Returns a string given an indeterminate number of command line arguments. .EXAMPLE $String = Get-String Hello World 1 Creates a variable containing the string 'Hello World 1' .NOTES Source Windows PowerShell in Action, 2nd edition, page 239, function qs #> "$args" } |