This is what I using for years. For download videos by yt-dlp.
I just changed theterminal.applescript in RunCommand.popclipext RunCommand.popclipext.zip (11.1 KB)
(previous was youtube-dl)
tell application "Terminal"
activate
-- If there are no open windows, open one.
if (count of windows) is less than 1 then
do script ""
end if
set theTab to selected tab in first window
do script "yt-dlp " & "{popclip text}" in theTab
end tell