Android Q: io.appium.settings.wifi broadcast Enable/Disable is not working

In Android Q below commands are not working.

adb shell am broadcast -a io.appium.settings.wifi --es setstatus enable
After triggering above command, on the device WIFI not enabled.

adb shell am broadcast -a io.appium.settings.wifi --es setstatus disable
After triggering above command, on the device WIFI not turned off.

Adb Logs:
03-18 06:00:43.275 19557 19557 D AbstractSettingHandler: Enabling Wi-Fi
03-18 06:00:43.278 1338 5427 I WifiService: setWifiEnabled not allowed for uid=10358
03-18 06:00:43.282 1338 5427 I ActivityManager: Killing 15209:com.google.process.gapps/u0a51 (adj 975): empty #17