When I run a whois query, I get, for example:

BestGuest is logged in as TheKing

So if I manually run the command:

/mode #mychan +b R:TheKing

the command works. However, I can't create the command from the other places I mentioned above: by clicking on the nickname list, and from the other two scripts, since they require a different spelling of the command. This is my problem.