Your messages will be delivered in all channels on that network unless then channel is moderated or otherwise has a mode that your status level doesn't permit you to speak there. No script would help you with this problem, other than identifying to nickserv for a nick which does have those privileges.
If your problem is that some of your channels are on another network, try:
/scon -a amsg test message