The scripts on the previous page work with the Raspberry Pi and Debian O/S. It is possible to run them under Linux on Windows 10. There are many examples i Google on how to install Ubuntu in the WSL, Windows Subsystem Linux. This is one of them: https://www.itechguides.com/how-to-install-ubuntu-on-windows-10/
I'll try to explain how I did it.
First, check the version of WSL at a Command window.
On one site I read that only version 1 can access the COM ports.
Next copy the individual scripts on the previous page to the home/user directory in Ubuntu.
Plug in the Icom and check with Device Manger which COM port it is connected to.
Edit the scripts, changing /dev/ttyUSB0 to /dev/ttySxx.
Test with txcvr ON or OFF.
Now edit a file in Notepad, txcvr_ON.bat.
bash -c 'home/userid/txcvr ON'
Save wherever, maybe in Documents.
Test that it works by running it
Do the same for the other scripts that you want to use, setpower.sh for example.