I assume you'd want the scripts to run right before playback starts, not on start.
Otherwise, updates (on subtitles, chapters, intro skipping, etc.) won't be reflected on the video, since it would be already playing and the remote player does not get those updated mid-playback.
The playback would have to wait for the script to be finished before it actually starts playing. So this can potentially introduce a lot of delay. However, it'd be a good idea as an optional add-on.