A script is a type of software, so that's not really a big difference.
I don't know about Tesla specifically, but if I was making a car that was intended to be moddable like this, I would have a hardware interface of some sort, and expect the mod to call a public API. This is similar to how cell phones can connect via USB and have some functionality.