Gilbert Quevauvilliers writes some Powershell:
In this blog post I am going to show you how to use PowerShell to run a DAX query from my dataset, and then store the results in a CSV file.
I will also include the PowerShell code!
I really liked the awesome blog post by Kay on the Power BI Team which you can find here: Announcing the public preview of Power BI REST API support for DAX Queries
Read on to see what prep work you need to do, as well as the scripts needed to pull this off.