Hi @VARANASI, PRADEEP ,
Welcome to Q&A forum!
According to my research and testing, as @Aleksandr Kolesnikov said, there is currently no way to make it.
But there is a workaround for your reference:
Use conditional Access to block user access to these apps via policy.
This is my testing process:
- Go to Microsoft Entra admin center, open the cascading menu of
Protection
in the left panel and select Conditional Access
.
- Then click
Create new policy
to create a new policy.
- In the Name section, enter a policy name.
- In the Users section, select the users to which the policy applies. Here I select a user, and you can select users based on your situation.

- In the Target resources section, select
PowerApps Service
, which will block access to both Power Apps and Power Automate.

- In the Access controls section, select Block access.
- Finally, switch Enable Policy to On and click Create.

- Wait a few minutes for the Policy to take effect. At that time, although users can see Power apps and Power Automate, they will not have permission to log in and use them.

If you still want to use scripts to implement it, it is recommended that you go to the Partner Center to seek customized support.
Have a nice day!
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.