[XE-300 (Puli)] disable WiFi and POWEROFF commands

Hello! I am interested in how to disable WiFi correctly with a sh-script and then enable it.
In addition, I am interested in the complete shutdown of the router, if I use in the script poweroff, then the OS shuts down, but the battery continues to power the router and therefore discharges. Please help with these questions

I need your help, pls

turn off WIFI

wifi down

turn on WIFI

wifi up

shuts down