Had trouble installing Webmin on Debian 12

SYSTEM INFORMATION
OS type and version Debian 12 no GUI
Webmin version 2.402
Follow the instructions on the Downloads page.
"curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
sh webmin-setup-repo.sh" Downloaded me HTML, not the script. As a workaround, I used curl on Windows and uploaded the .sh file using FileZilla. I’m clearly doing something wrong here.
And the system didn’t recognize “–install-recommends”, ended up installing without the flag.

That a bit strange. You are use the command in a ssh login (eg: via a putty login)?
Otherwise you use wget to download
wget https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
the run the script to setup the repo
sh webmin-setup-repo.sh

Bit strange you having these issues, how are you logging into the server?

I used putty and ran commands and works fine using Debian 12

I was using the Proxmox console. I can try to test it again tomorrow using either PowerShell or PuTTY instead.

Never used it, sounds like its pasting incorrectly.

Reinstalled Debian and used PowerShell this time. It worked just fine.