1. Installing
This tool creates .lnk files either from python or your shell (cmd.exe)
It is possible to create .lnk files with "Run as Administrator" checked.
You can also execute every executable file in hidden mode (no window, no icon in the taskbar), no bothersome popup when opening bat files.
However, it is still possible to capture the stdout.
pip install lnkgonewild
from lnkgonewild import lnkcompile
Wait until the subprocess is done! Press enter to continue>?

The compiled files can also be downloaded (Python is not needed):
https://github.com/hansalemaos/lnkgonewild/raw/main/lnkgonewild.exe
https://github.com/hansalemaos/lnkgonewild/raw/main/secretsubprocess.exe
Warnings
Due to the app's suspicious behavior (changing bytes in .lnk files, executing other processes as subprocesses, hiding windows, capturing output, containing exe in exe files (secretsubprocess.exe is in lnkgonewild.exe, writing scripts to the HDD and executing them), you might have to add those files as exceptions to your antivirus.


3. Creating “common” shortcuts

from lnkgonewild.lnkgonewild import create_shortcut
create_shortcut(
shortcut_path=r"C:\Users\hansc\Desktop\testlnk2.lnk",
target=r"C:\cygwin\bin\ls.exe",
arguments=[r"-la"],
working_dir="c:\\Windows\\Fonts",
minimized_maximized_normal_invisible="normal",
silentlog=None,
asadmin=False,
hotkey="Ctrl+Alt+q",
)
var sh = WScript.CreateObject("WScript.Shell");
var shortcut = sh.CreateShortcut("C:\\Users\\hansc\\Desktop\\testlnk2.lnk");
shortcut.WindowStyle = 4;
shortcut.TargetPath = "C:\\cygwin\\bin\\ls.exe";
shortcut.Hotkey = "Ctrl+Alt+q";
shortcut.Arguments = "-la";
shortcut.WorkingDirectory = "c:\\Windows\\Fonts";
shortcut.IconLocation = "C:\\cygwin\\bin\\ls.exe";
shortcut.Save();


4. Creating “special” shortcuts (hidden execution)
create_shortcut(
shortcut_path=r"C:\Users\hansc\Desktop\testlnk3.lnk",
target=r"C:\cygwin\bin\ls.exe",
arguments=[r"-la" ,"-R"],
working_dir="c:\\Windows\\System32",
minimized_maximized_normal_invisible="invisible",
silentlog="c:\\logfilels22.txt",
asadmin=True,
hotkey="Ctrl+Alt+e",
)
var sh = WScript.CreateObject("WScript.Shell");
var shortcut = sh.CreateShortcut("C:\\Users\\hansc\\Desktop\\testlnk3.lnk");
shortcut.WindowStyle = 4;
shortcut.Hotkey = "Ctrl+Alt+e" ;
shortcut.TargetPath = "C:\\ProgramData\\anaconda3\\envs\\adda\\lib\\site-packages\\lnkgonewild\\secretsubprocess.exe";
shortcut.Arguments = "--exe C:\\cygwin\\bin\\ls.exe --log c:\\logfilels22.txt --args -la -R";
shortcut.WorkingDirectory = "c:\\Windows\\System32";
shortcut.IconLocation = "C:\\ProgramData\\anaconda3\\envs\\adda\\lib\\site-packages\\lnkgonewild\\secretsubprocess.exe";
shortcut.Save();