add method for appending script literal fragments
use appendCode method from MonitorCommand