Check the $PSCmdlet variable:
$PSCmdlet.ParameterSetName
You can check in your script:
$PsCmdlet.ParameterSetName