PowerShell - Functions
You wrote this parameter declaration:
But when running the script without the
param(
[Parameter(Mandatory=$true)]
[ValidateSet('Small','Medium','Large')]
[string]$Size
)But when running the script without the
-Size argument, it does not prompt for input and continues silently. What is the likely cause?