An Azure service that is used to automate, configure, and install updates across hybrid environments.
Refer to https://normansolutions.co.uk/automating-azure-pim-role-activation-with-powershell/
Script Overview
Authentication
Connects to Microsoft Graph with the necessary scopes for role management.
User Interface
Displays a simple Windows Form with checkboxes for roles like Global Reader, Exchange Administrator, and Intune Administrator.
Role Filtering
Fetches eligible roles for the current user and filters based on selections made in the form.
Activation Logic
Loops through selected roles and submits activation requests with a justification and expiration time.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin