PowerShell Script Executor Extension is a Microsoft Edge extension designed to run local PowerShell scripts on Windows. It utilizes a Python script as the NativeMessagingHost, enabling seamless communication with the background thread of the extension.
The extension can read the URL from an active tab and pass this information to the PowerShell script for further processing.
-
Type edge://extensions/ in Edge’s address bar.
-
Turn on “Developer mode” and “Allow extensions from other stores “on the left side of the page.
-
Click Load unpacked on the top right of the page and select the project main directory.
-
Find PowerShell Executor card and grab the ID
-
Run setup.bat as an administrator.This will prompt you to enter the extension ID and then set up the NativeMessagingHost accordingly.
-
Now you should be able to see the extension installed as
-
Enter the absolute path of the PowerShell Script. As a default example, enter
"C: Path\To\Project\Powershell-Script-Executor-Extention\powerShellScripts\ download_video.ps1 "
When executed, this should download the video from the current tab using yt-dlp.exe.
An example can be found at "C: Path\To\Project\Powershell-Script-Executor-Extention\powerShellScripts\ download_video.ps1 " Note that the script accepts a single parameter, url, which corresponds to the URL of the tab where the user clicked the "Execute" button.url which is the tab’s url.


