Most likely, there is no need to create a script for this. Try using the built-in mIRC command "
/ignore" to set ignore private messages from users based on part of their address.
For example:
/ignore -p *@*post.cust*
/ignore -p *PwHRL*@*
/ignore -p *@*swisscom*
/ignore -l
Can read more details here:
https://en.wikichip.org/wiki/mirc/commands/ignore