Playing with ESL and need some advice.

How canĀ I schedule this dialplan command for example:

<action application="event" data="Event-Subclass=myevent::notify,Event-Name=CUSTOM,key1=value1,key2=value2"/>

I want to shedule from ESL to raise CUSTOM event in x seconds, so I can catch this event in ESL.

Should I send Api or Command from my code (ESL)?

I tried to send like:

sched_api +5 cc event Event-Name=CUSTOM, Event-Subclass=mysub::sub

But I get error Invalid Command!

Any hint?