How to enable / disable local area connection via CMD?
1. Check interface list
netsh interface show interface
2. enable
netsh interface set interface name="Local Area Connection" admin=DISABLED
3. disable
netsh interface set interface name="Local Area Connection" admin=DISABLED
4. make bat file via notepad
write the command you want above
save the file as "filename.bat" in ANSI encoding type
5. make shortcut the bat file
6. set always run in administrative mode
Reference
https://www.windows-commandline.com/how-to-disable-lan-connection-from-cmd/