Airport Channels & Terminal Command

I am writing a script to change the Airport channels, is there some way of doing this via a terminal command?