Controlling Hyperpixel backlight

I installed the latest Pi OS on a Pi Zero 2 a few weeks ago, to find that backlight support had reappeared in the OS GUI.
After some investigation I found that the backlight can be turned on\off by
echo 0\1 | sudo tee /sys/devices/platform/backlight/backlight/backlight/bl_power

My question is: Whilst this works, is it an advisable method or is there something more suitable?