[PTM CC] executeCommand function added.