As this is a wonderful little script I have added some little improvements.
Added checks to see if NuGet and AzureAD are already available, if not install them. This makes the script a little faster if you are trying things out locally without needing to install both modules over and over if they are already installed.
Added Disconnect-AzureAD to not keep the session open then needed
As this is a wonderful little script I have added some little improvements.