I can ssh to a RPi 4 from Windows 10 and start a remote Python script, but the output of the script appears on the Windows console.
Tried using nohup to be able to close the Windows console without interrupting the script, but didn't work (no warnings).
(AHK) run %ComSpec% /c ssh <host> "nohup python3 /home/pi/this.py"
Tried tmux, but using a Windows AHK script to open a ssh connection then create a tmux session gives a warning that tmux file or directory wasn't found (/usr/bin/tmux, same directory as /usr/bin/python).
I can manually connect via ssh and execute tmux without issues.