Running Tidal scripts from startup

Hi again!

I'm trying to use a Raspberry Pi 4 as a drum sequencer for a midi drum machine. Ideally, I would like the Pi to boot my sequencing script from start-up so I don't need to bother plugging in a screen or mouse and can just plug it straight into the drum machine via USB. I'm now attempting this on Windows and Linux concurrently in case one works easier than the other.

I think I need to add something to my BootTidal.hs file, so my sequencing patch starts running as soon as Tidal boots. But I'm not sure what?

Also it would help if Tidal booted as soon as I opened Atom. How do I do this?

Thanks very much