I have created a pwsh script with params e.g.
param(
[Parameter(Mandatory=$false)]
[string]$InterfaceName = "Switch Name",
[Parameter(Mandatory=$false)]
[string]$SSHConfigName = "config_example",
[Parameter()]
[Switch]$Backup
)
I have given it the following execution types
I know that "Runnable scripts" have no way to enter arguments so in my script I have left fallbacks with my most common configuration. With the idea that if I need something more advanced I will start a shell session and run the script as a "Shell session script"
However, when I run the script I get the following
Is this a bug or is there a better way of handling this scenario?
Also I know this is more of a feature request, but would it be possible to have some sort of way to define common argument configurations so you could select "Runnable A" > "Argument Set B".