Hi,
I am using a bit f software called AutoIt, this opens a powerBI application, then using hotkeys loads a dashboard. It then refreshes from the database (an SQL database hosted on Amazon) before saving the dashboard.
This is run froma C# program, code modified from the provisioning stuff the MS supplies, and uploads the new dashboard to our embedded app before deleting the old instance.
Hope this helps