Tell Finder to Logout??

Is there an AppleScript (or Shell) command that will do the same as choosing “Log Out” from the Apple menu?

I have a basic script that is run when a particular user logs in, and I would like to have a button that does the same as clicking “Log Out” from the apple menu.

Thanks!!

The command is in the System Events’ dictionary: