How to add something to the timeline with HomeyScript

Does anyone know how i can add something to the timeline with HomeyScript?