You are probably looking at Twitch scripts. My understanding is that you're supposed to use msg #channel <command> on Twitch, but on other networks you don't use msg #channel before a command.