Change ParameterSetName='byname' to ParameterSetName='Index'
Change ParameterSetName='byname' to ParameterSetName='Index'

Needed to match the DefaultParameterSetName attribute values
set to 'Index'.

Makes it possible invoke commands that have more than one
parameter set without specifying any parameters; mandatory
parameters will be prompted for occording to the
default parameter set.

tomlarse/Posh-SSH,darkoperator/Posh-SSH,rafd123/Posh-SSH,bgshacklett/Posh-SSH