Skip to content

Instantly share code, notes, and snippets.

@aws-scripting-guy
Created March 6, 2016 21:55
Show Gist options
  • Save aws-scripting-guy/f29b209074b61f371383 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/f29b209074b61f371383 to your computer and use it in GitHub Desktop.
powershell script - array as param
Param(
[array]$region = @( "eu-west-1")
)
foreach ($item in $region) {
echo $item
}
#PS> .\array_as_param.ps1 us-east-1,eu-west-1
#us-east-1
#eu-west-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment