Can anyone give me an example of coding a delegated permission to an application in Azure Powershell? The image below shows an example of how I would like the permissions to look like.
I know I should use the 'oAuth2PermissionGrant' seen in this link: https://learn.microsoft.com/en-us/graph/api/oauth2permissiongrant-post?view=graph-rest-1.0&tabs=powershell
But I haven't used it correctly yet. Can anyone provide an example?

You can make use of below sample PowerShell script to add Microsoft Graph and Azure Service Management API permissions of Delegated type to app registration:
Response:
To confirm that, I checked the same in Azure AD application where Delegated permissions added successfully as below:
To add admin consent to Microsoft Graph permissions, you can use below sample script:
Response:
To add admin consent to Azure Service Management permissions, you can use below sample script:
Response:
When I checked the same in Portal, admin consent granted successfully to all permissions as below: