Are you sure you need to install Windows for this?
On my Lenovo machine (thinkpad E490) I can just edit the following files:
/sys/class/power_supply/BAT0/charge_stop_threshold
/sys/class/power_supply/BAT0/charge_start_threshold
You can edit /sys/class/power_supply/BAT0/charge_stop_threshold and /sys/class/power_supply/BAT0/charge_start_threshold directly. That's what I am doing on my E490, it works for me.
Are you sure you need to install Windows for this?
On my Lenovo machine (thinkpad E490) I can just edit the following files: /sys/class/power_supply/BAT0/charge_stop_threshold /sys/class/power_supply/BAT0/charge_start_threshold
You can edit /sys/class/power_supply/BAT0/charge_stop_threshold and /sys/class/power_supply/BAT0/charge_start_threshold directly. That's what I am doing on my E490, it works for me.