Don't want to make it? Get it here: https://amzn.to/2PmcrFs
Make a Power Switch tail which an Arduino, Raspberry Pi or other Micro-controller can safely switch on and off.
The plug uses a 5 volt coil relay to control 120 volts ac.
The 120 volts ac comes in from the mains with a power cord and then switches through the relay supplying power to the plug.
Realy here from Ebay US supplier:
http://www.ebay.com/itm/1-Channel-Isolated-12V-Relay-Module-Coupling-For-Arduino-PIC-AVR-DSP-ARM-/231429959524?hash=item35e24cef64:g:zyQAAOxymHRRw-r9