Starting factory reset and controlling network manager from a snap

What’s the best way to start a factory reset of Ubuntu Core 22 from a snap? We are a digital signage company and most of our device are managed remotely.

Also, is there a guide for controlling network manager or activating console-conf from a snap? I have tried communicating with network manager over dbus, but permissions where denied for setting a connection. I do have network-manger interface included with my snap. I also tried using nmcli, but the command wasn’t found when I tried to use it inside a shell in the snap.