Code:
on *:text:!*:#:{
  set $+(%,$nick) $1-
}

When a nick issues a command starting with the ! character, then the command and the parameters for the command are stored in a variable name for the person that issued the command.

To reference the value of the variable, you would use something like
Code:
on *:text:!view*:?:{
  if $nick == my_nick {
    .msg $nick $$2 $iif(!$($+(%,$$2),2),has not issued a command,has issued command $v1)
  }
}