Adding Timeline track layer

Hello,
Is there a way to add track layer with a script?
I added ILayerable interface to the Track script and was able to add a layer by right-clicking on the track, but I am hoping to accomplish this through a script.

9051694--1250806--upload_2023-6-1_16-20-54.png

Found solution. Check this forum: Any code samples for how to use ILayerable