How do I set a shell script as an "Open With" option for certain file types?

I got a handy script that lets me run .exe files with proton, it works great but I have to use the terminal every time I want to run a file. Is there any way to run this script when I double click a .exe file? The same way it does with all other file types?

I tried using the menu and selecting my .sh script, but it says it’s not an executable. The script takes only one argument, the file name/path.

Im using KDE Plasma and Fedora 44

# Script
mkdir -p -Z ~/.local/bin
tee ~/.local/bin/proton-launcher << "EOF" > /dev/null
#!/usr/bin/bash
...
EOF
chmod +x ~/.local/bin/proton-launcher

# Launcher
mkdir -p -Z ~/.local/share/applications
tee ~/.local/share/applications/proton-launcher.desktop << EOF > /dev/null
[Desktop Entry]
Type=Application
NoDisplay=true
Name=Proton Launcher
MimeType=application/vnd.microsoft.portable-executable;
Icon=application-x-executable
Exec=proton-launcher %f
EOF

# MIME
xdg-mime default proton-launcher.desktop \
    application/vnd.microsoft.portable-executable

That worked! I did that exact same thing but through the GUI instead, made a file called proton-launcher.desktop on /.local/share/applications, then pasted the desktop entry there, and selected it using the “Open With” menu.