For anything like that, there's a scripting forum ...
Premiere Pro SDK |Adobe Community
I'd suggest asking over there.
Have you investigated the PProPanel sample?
Retrieving data ...