CPlusPlus changing parameters

This question has been asked and answered before, but it was a couple years ago so I’ll ask again.
Here’s the original question: https://www.derivative.ca/Forum/viewtopic.php?f=4&t=9981
I’m trying to build a custom TOP for the kinect for azure similar to the realsense op
I have a menu of connected devices as a parameter menu , but i need to be able to run the top and find all the available devices to populate the menu.

is the best method still to use a dat execute or has something else come along?