See GitHub to download or for more information: https://github.com/ITAutomator/Powershell-Launcher
Overview
Gives the user an easy way to launch a .ps1 file, by a simple double-click on the .cmd file.


What it does
Launches a .ps1 file with the same base name as the .cmd file.
If the .cmd file ends with (as admin) then it will not proceed unless it is run as administrator
Bypasses the requirement for Set-ExecutionPolicy changes.
Guides the user to run as admin (if needed).
Uses PowerShell 7 if it is found.
Usage
Copy the .cmd to the same folder as your .ps1
Rename the .cmd to have the same base name as your .ps1
If your .ps1 requires elevation, add ‘ (as admin)’ to the end of your .cmd name
Double-click the .cmd to launch your .ps1