Public/New-QuickArray.ps1

1
2
3
4
5
6
7
8
9
10
Function New-QuickArray {

    Generate-QuickArrayForm

    #Take the global variable, remove the carriage returns, and then use the split method to split on a new line
    Write-Output $global:quickArrayInput.Replace("`r","").Split()

    Clear-Variable -Name quickArrayInput -Scope Global

}