Are you wanting to display a dashboard that is launched from a script? Or are you trying to mine/manipulate the data from a dashboard page?
If the former, the Hubitat Dashboard is just a web app running on the Hub, which can be accessed by any compatible web browser either using a LAN URL or a CLOUD URL. The cloud URL will work even if you’re on your home LAN. If you’re script is launching a browser with the Dashboard URL, I would think that should work.
If the latter, I would recommend you take a look at the Hubitat Maker API, which implements a RESTful API, transferring JSON back and forth. It works very well and can be called via the iOS Shortcuts App’s scripts to get data about a device, or issue commands to a device.
Developers have even implemented full integrations using the MakerAPI app for things like HomeBridge and The Home Remote.
Hope this helps. If you explain What you’d like to accomplish, I am sure the community will be happy to assist.