The parameter -myParameterExample returns true. Am I missing something, how come it picks up the partial entry? Googled but did not find much, not really sure what to google for either. Thanks in advance. I am sure it is something stupid on my part.
You can abbreviate ALL parameter names if you like. As long as they are unique it will work. And if one character is enough to specify the parameter name it’s enough. That’s a default feature of all parameternames in PowerShell. But you could not use only -F when the cmdlet has parameters -File and -Force for example. In this case you’d need either -Fi or -Fo.
About the issue of a default value … If you want to have a default value you may use a type of [Boolean] instead.