Ok. Sounds like you want to use the extension function of the power table then to allow the user to run the script that opens the window.
Just use system.nav.openWindow - Ignition User Manual 7.9 - Ignition Documentation
You would do
params = {"someParam1":someValue, "someParam2":someValue2, ....}
system.nav.openWindow("MyPopupWindow", params)
Run whatever database/tag/scripts necessary to form your params, but ultimately you just need to call
system.nav.openWindow("MyPopupWindow", params)