http://cs.elderscrolls.com/constwiki/index.php/Portal:Scripting is a good starting point, but, isn't completely up to date.
http://obse.silverlock.org/obse_command_doc.html should be more up to date, and is another good resource.
You will have to install OBSE, if you haven't already...... and 'adjust' your shortcut to the CS to enable it, then, it is as simple as writing the scripts you need right there in the CS.
Edit: Keep in mind, you have to run the game with OBSE as well, otherwise, your mod won't work.