I wrote this article about doing this here:
Making PowerShell automation easier with the Microsoft Graph
Now I have also done a video on the process which you can find here:
https://www.youtube.com/watch?v=n4_FxXiTAno
Let me know if you have any feedback on how this can be improved.