https://www.amazon.com/gp/product/B07J4QK88D/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1[/URL]
You can go down a rabbit hole trying to figure out how to do the tasmota installation. My suggestion is to go right to the Tasmotizer software.
Getting started with Tasmota. What you need, how to install and do initial configuration.
tasmota.github.io
Then you can program it to toggle off and then back on for your power cycle. With a little ingenuity you can toggle it from anywhere with internet access.