As @tgauchat says, much depends on the details of how you want to use it.
First point, though, is that it’s unlikely you want a dumb switch controlling the load to the outlet as once it cuts power to the outlet, you can’t use a network command to turn it on again.