You cannot check a command by querying a cvar. Also, if the command is not sent to the server (meaning it is only used client-side) then you can never know that it happened. There is no way to change this.
For example, it is impossible to know if someone uses an alias in the console because the command is never sent to the server.