Hi,
I’m trying to pass [String[]] as parameter for simple automation script:
param (
[Parameter(Mandatory = $true)]
[String[]]$Users
)
foreach ($User in $Users) {
Write-Output “User: $User”
}
if I run it, the input form already filled with empty value that look like little opaque square with ‘x’ inside. It’s possible to delete this empty element and script will run as expected.
Is it possible to disable this empty value?
Product: PowerShell Universal
Version: 2.3.0