How to force a EXE Powershell Script compiled with Win-PS2EXE to run with Powershell 7
I have a PowerShell script that I converted to an EXE with Win-PS2EXE.The problem is that I’m using Foreach -parallel
and it doesn’t work with PowerShell 5.0, I need this EXE to run with the latest shell and i already tried using #Requires -Version 7.0
and it stills running with the old one.