How to get all Graph API permissions required to run selected code using PowerShell