I want to create a script to accept as input, the names of multiple directories [1...n]and then save them to an array.
ex. directories.ps1 sql ksh txt
ie run the script passing in the names of the directories which could be any number.
How would I do this in powershell?