Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save w-e-w/e1a2833086c0996cfad4e730eb0b0dc5 to your computer and use it in GitHub Desktop.
Save w-e-w/e1a2833086c0996cfad4e730eb0b0dc5 to your computer and use it in GitHub Desktop.
click to run powershell script of the same name - rename me.bat
@echo off
PowerShell -NoProfile -ExecutionPolicy Bypass -File "%~dpn0.ps1"
@w-e-w
Copy link
Author

w-e-w commented Jul 10, 2022

frustrating on teaching people on how to run a powershell script?
just include this batch scrip, rename to the same file name as the powershell script, and ask them to double click it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment