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.