Why do something twice by hand, if you can automate it? In this repository you will find all sorts of scripts that help you to automate tasks in either Power BI or Microsoft Fabric.
Majority of code is based on
Please see the notes in the scripts for further explanation of each.