Quite often I get users that are confused when it comes to tclsh scripts versus EEM Tcl policies. They think that it should be possible to run an EEM Tcl policy through tclsh, or that they can simply register a tclsh script as an EEM Tcl policy after they add an event registration line. Perhaps they're right in thinking this should be possible. But unfortunately, it's not.
The first script attached, tclsh2eem.tcl currently consists of definitions for two of the most popular functions, exec and ios_config, that if included in your tclsh script, will most likely mean you can register it as an EEM Tcl policy just by adding the event registration line and the two namespace imports.
If time permits, I'd like to add a script to do the opposite. That is, allow one to test at least "none" policies in tclsh.
If people want to add to this document more function definitions or start the eem2tclsh.tcl, please do so.