Turning On/Off power outlet (real world) - Arduino?

I am trying to use a fan to add immersion in a VR experience but I don´t want it to stay on for the whole time. How could I turn it on/off via Unreal Engine? With an Arduino?

Is there a simpler way? I remember reading something about a smart outlet or smart switch…