0

How can i put powershell version 5 by default? I do use some Get commands from the PowerPlatformscmdlet and I can not run it within Powershell 7. When i do manually switch to version 5, it is working perfectly. How can I switch my powershell to run on version 5? Note that I am using VS studio code and everything else is working good. Thanks!

When i do switch manually to version 5, it is working good. But I m using that script to be run from a Power automate Desktop, and need to make it works by version 5.

mklement0
  • 382,024
  • 64
  • 607
  • 775
jmartel
  • 3
  • 2
  • The linked post, while not an exact duplicate, shows you how to configure which PowerShell edition Visual Studio Code should use by default. – mklement0 Jan 20 '23 at 23:31

0 Answers0