Is there a way to disable a Messages account via command line?

Solution 1:

It turns out stopping was more logical than expected:

tell application "Messages"
     repeat with s in services
            set n to name of s
            log out s
     end repeat
end tell

It doesn't seem to work the other way around. I've tried and I've tried, and I can't get no satisfaction.