Several self-documenting sample PowerShell scripts that leverage the Power BI REST API are available at the following GitHub repository https://github.com/Azure-Samples/powerbi-powershell.
As shown in the following screenshot, this repository includes PowerShell scripts (.ps1 files) for the refresh of a dataset, the rebinding of a report (to a dataset), and other common use cases:
In addition to Windows PowerShell or the PowerShell Integrated Scripting Environment (ISE), Azure PowerShell cmdlets must also be installed to execute the REST API scripts. The following links can be used to install ...