Or just use curl and jq with the REST Api, which will not force a complete rescan and will not close any connections:
curl -s -X GET -H 'X-API-Key: {api-key}' http://localhost:8384/rest/system/config | jq '.options.maxSendKbps = 1024 | .options.maxRecvKbps = 2048' | curl -s -X POST -H 'X-API-Key: {api-key}' http://localhost:8384/rest/system/config -d @-
not tested on Windows
https://curl.haxx.se/windows/
https://stedolan.github.io/jq/download/