Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Power Shell Script

Hello everyone

I need a big help here I am writing a powershell script to execute from my powerapps. I pass three parameters into the flow which is the environment (ie Para1), User Guid(ie Para 2) and the APP ID GUid (ie Para 3). I need to make it run as a powershell script


Below is my code that is going to create a file in onedrive. I am just guessing this is the way to do it


param([string] $Environ = Para1,
[string] $Userguid = Para2,
[string] $Appguid = Para3
Remove-AdminPowerAppRoleAssignment -$Environ -AppName $Appguid -RoleId $Userguid


I have attached what I have created in flow and if someone can find the solution I would really appreciate it

I have attached two images of my flow



Dual Super User II
Dual Super User II

Hi @mpezzutti 


I do not see the screenshots. And please track this post here as it seems to be a duplicate one : 


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (54,398)