closed #4452: Add `addCustomHandler` in the ScriptHandlerMgr for Console auto test.