Add script to log from command line. Add support to allow logged
event to be echoed back from script.