I was able to implement a manual search https://forums.mirc.com/ubbthreads.php/topics/264144/hard-time-understanding-filter-command (with some difficulty), but I need some automation for other users.

Can anybody help me out with this?

1. User types !scan SearchTerm in a specific channel
2. mIRC client switches to status window
3. mIRC client executes /clear in status window
4. mIRC client posts "Working..." in a specific channel
5. mIRC client executes /quote who *SearchTerm*
6. After, say, 5-second timer, every line that contains *SearchTerm* in status window as a result of /who *boat* gets copied to a specific channel
7. mIRC client posts "Search complete." in a specific channel.