a preferred embodiment of an apparatus 10 utilized for controlling power to an electrically powered device is shown in fig1 - 3 , in the form of an extension cord . the apparatus 10 comprises of at least one controlled socket 11 , a casing 12 , a plug 13 , a switch 14 , and a cord 15 . in fig4 , the interior components of the apparatus 10 are shown and in fig6 a circuit block diagram for the apparatus 10 is shown . the apparatus 10 further comprises at least a radio transceiver 50 , a microprocessor 41 , a switch 61 , and a power converter . additionally , light - emitting diodes ( led ) 45 provide status indication . the plug 13 is used to receive alternating current ( ac ) power , and the switch 61 is connected in between the socket 11 and the plug 13 . the microprocessor 41 receives direct current ( dc ) power , decodes a control signal from a remote control , such as a handheld device , via the radio transceiver 50 , and then controls the switch 61 based on the decoded control signal . the switch 61 is preferably a latching relay controlled by the microprocessor 41 , according to the control signal received from the remote control device . the latching relay minimizes the power usage of the electrical device connected to the apparatus 10 , independent of the state of the switch 61 . further embodiments of the present invention include additional onboard energy storage , with sensing or measuring capabilities , in various form factors embedded or interfaced with various electrical components such as , but not limited to ; cords , outlets , converters , circuit breakers and surge protectors . additional embodiments of the present invention include combining a single or multiple energy harvesting sources to provide power to control the relay . in the preferred embodiment , the radio transceiver preferably includes an antenna 50 positioned within the cord 15 in order to increase the reception power of transceiver . in addition to the antenna , the cord 15 also comprises of three wires 42 - 44 ( hot , neutral and ground ), which are further detailed in fig5 . the antenna runs parallel in the power cord for increased performance . fig5 shows the internal components of the cord 15 . there are conductors for the three wires 42 - 44 for the socket and a fourth encased conductor 55 for the antenna 50 , all preferably molded within insulating material 51 . the antenna 50 preferably comprises of a protective sleeve 52 , a shielding copper braid 53 , foam 54 , and a copper conductor 55 ; or other such materials typically used to protect the antenna 50 from interference of the other wires 42 - 44 . further , the antenna 50 is preferably positioned as far as possible from the three other wires 42 - 44 to minimize the interference from the wires 42 - 44 . the apparatus 10 of this embodiment preferably has two controlled sockets 11 located on the front of the module . the casing 12 is preferably injection molded insulating material . both sockets 11 are controlled with the same on / off command . the apparatus 10 is comparable in function and usability to standard extension cords and plugs . the mechanical interactions for the user using the apparatus 10 does not compromise safety or functionality compared to standard extension cords and plugs . the apparatus 10 plugs securely into a single outlet of a standard duplex wall receptacle and the plug 13 is configured in such a way that the other outlet is not impeded . each socket 11 of the apparatus 10 preferably has a current rating of 15 amperes ( a ) at 120 volts in alternating current ( v ac ). a pushbutton switch 14 on the apparatus 10 , when activated , preferably resets the apparatus 10 to the factory default conditions for the configuration settings . the apparatus 10 has a led indicator 16 that is on when the apparatus 10 obtains and maintains a wireless connection to the lan ( local area network ) and off when the apparatus 10 does not have a wireless connection to the lan . the led indicator 16 also preferably represents the state of the outlet power for the apparatus 10 as well , which is preferably accomplished by blinking in a set pattern . alternatively , the led indicator 16 flashes accordingly to indicate the status of the wireless connection . in the event of a power failure , the apparatus 10 automatically returns managed sockets 11 to the previous state , prior to power interruption . in the event of a dropped wireless connection , the apparatus 10 maintains port settings last set by the user , prior to the loss of wireless connectivity , until the wireless connectivity is restored or until the user disconnects the apparatus 10 . a procedure for initializing an apparatus is shown in fig1 . at block 183 , after a power loss or when the apparatus 10 is plugged in , the microcontroller 41 executes a program 160 for initializing the apparatus 10 . at block 184 , the power on timer is reset . at decision 185 , if the wi - fi is not initialized , the leds for all of the relays are set to on and the apparatus is the wi - fi timer is reset at block 189 , which times the seconds passed since the last ping . if the wi - fi is initialized at decision block 185 and there is no ping timeout at decision block 187 , then the relays are set to the last command value before the loss of power 188 . if there is a ping timeout at decision block 187 then the relays are set to on a block 186 , and then the wi - fi timer is reset at block 189 . after resetting the wi - fi timer at block 189 , the program 160 checks for any pending wi - fi commands at decision block 191 . if there are no pending wi - fi commands at decision block 191 and no ping timeouts at decision block 192 , then the program 160 returns to check for a wi - fi command at decision block 191 . if there is a ping timeout at decision block 192 then the wi - fi led indicator 16 is set to off at block 193 and the timeout flag is set at block 194 . then the program 160 returns to the wi - fi initialization step at decision block 185 . if there are pending wi - fi commands at block 191 and there is a relay command at decision block 195 , then the new data from the command is written into the “ last ” command values block 196 and the program 160 returns to setting the relays and led to the “ last ” command value at block 188 . if there is no relay command at decision block 195 then the program 160 checks for a config command at decision block 197 . if there is a config command at decision block 197 , then the configuration information is updated at block 198 and the program 160 returns to checking for ping timeouts at decision block 192 . if there is no config command at decision block 197 , then error status bits are set and the program 160 returns to checking for ping timeouts at decision block 192 . an alternative embodiment of an apparatus 20 utilized for controlling power to an electrically powered device is shown in fig7 - 9 , in the form of a compact box style receptacle . yet another alternative embodiment of an apparatus 30 utilized for controlling power to an electrically powered device is shown in fig1 - 13 , in the form of a compact box style receptacle . the alternative embodiments are similar to the preferred embodiment , the distinction being in the physical type , and / or shape . the apparatus 20 / 30 is preferably shaped as a rectangle and is approximately 2 inches × 2 inches × 1 . 5 inches . the apparatus 20 / 30 preferably has two controlled sockets 11 located on the sides of the module . the casing 12 is preferably injection molded insulating material . both sockets 11 are controlled with the same on / off command . the apparatus 20 / 30 is comparable in function and usability to standard extension cords and plugs . the mechanical interactions for the user using the apparatus 20 / 30 does not compromise safety or functionality compared to standard extension cords and plugs . the apparatus 20 / 30 plugs securely into a single outlet of a standard duplex wall receptacle and the plug 13 is configured in such a way that the other outlet is not impeded . each socket 11 of the apparatus 20 / 30 has a current rating of 15 a at 120v ac . the apparatus 20 / 30 has a led indicator 16 that is on when the apparatus 20 / 30 obtains and maintains a wireless connection to the lan ( local area network ) and off when the apparatus 20 / 30 does not have a wireless connection to the lan . in the event of a power failure , the apparatus 20 / 30 automatically returns managed sockets 11 to the previous state , prior to power interruption . in the event of a dropped wireless connection , the apparatus 20 / 30 maintains port settings last set by the user , prior to the loss of wireless connectivity , until the wireless connectivity is restored or the user disconnects the apparatus 20 / 30 . a pushbutton switch 14 on the apparatus 20 / 30 , when activated , preferably resets the apparatus 20 / 30 to the factory default conditions for the configuration settings . yet another embodiment of an apparatus 40 utilized for controlling power to an electrically powered device is shown in fig1 - 15 , in the form of a power strip . the embodiment of fig1 - 15 is another variation of the apparatus 10 in the form of a power strip . the apparatus 40 is shaped similarly to currently available power strips . the casing 12 is preferably injection molded insulating material . the apparatus 40 preferably has six independently controlled sockets 110 and two sockets which remain constantly on 111 . the device is comparable in function and usability to standard power strips and plugs . the mechanical interactions for the user using the apparatus 40 does not compromise safety or functionality compared to standard extension cords and plugs . the apparatus 40 plugs securely into a single outlet of a standard duplex wall receptacle and the plug 13 is configured in such a way that the other outlet is not impeded . each socket 110 - 111 of the apparatus 40 preferably has a current rating of 15 a at 120v ac . the apparatus 40 has a led indicator 112 that is on when the device obtains and maintains a wireless connection to the lan ( local area network ) and off when the device does not have a wireless connection to the lan . in the event of a power failure , the apparatus 40 automatically returns managed sockets 110 to the previous state , prior to power interruption . in the event of a dropped wireless connection , the apparatus 40 maintains port settings last set by the user , prior to the loss of wireless connectivity , until the wireless connectivity is restored or the user disconnects the apparatus 40 . a pushbutton switch 114 on the device 40 , when activated , preferably resets the device 40 to the factory default conditions for the configuration settings . a system 100 of the preferred embodiment is shown in fig1 . a table lamp 32 is plugged into one of the sockets 11 of the apparatus 10 , and the plug 13 at the other end of the cord 15 of the apparatus 10 is plugged into a typical wall outlet 31 . a user controls the lamp 32 from a distance using the touch screen commands 215 on a smartphone 210 . a wifi signal is sent from the smartphone 210 and received at the antenna 50 , not shown in fig1 , of the transceiver of the cord 15 . the wifi signal instructs the microprocessor 41 of the apparatus 10 to deactivate the electrical power to the table lamp 32 . when the apparatus 10 is connected to electrical power from the wall outlet at block 161 , the microcontroller 41 executes a program 150 , which is shown in fig1 . if the deployment configuration is not set up at decision block 162 on the apparatus 10 , then the switch 61 and the led are turned on at block 163 . if there is a no wi - fi command received at decision block 164 , then the program 150 returns to check for the deployment configuration at decision block 162 . if there is a wi - fi command received at decision block 164 but there is no configuration command at decision block 165 , then the program 150 returns to check the deployment configuration at decision block 162 . if there is a configuration command at decision block 165 , then the configuration command is processed block 166 and the program 150 returns to check the deployment configuration at decision block 162 . if the deployment configuration is set up at decision block 162 and there are ping timeouts at decision block 167 , then the switch 61 is set to on at block 168 and the led 16 is set to blink at block 169 . if there are no ping timeouts at decision block 167 , then the program 150 checks if the pushbutton 14 was triggered at decision block 171 . if the pushbutton 14 was held for more than 3 seconds at decision block 172 but less than 20 seconds at decision block 173 , then the switch 61 is set to on at block 175 . if the pushbutton 14 was held for more than 20 seconds at decision block 173 , then the factory default configuration is set at block 174 and the switch 61 is set to on at block 175 . if the pushbutton 14 was held for less than 3 seconds at decision block 172 then the program 150 moves on to the next step at decision block 176 . if a wi - fi command is received at decision block 176 then the ping timeout is reset block 177 and the command received is processed at block 178 . then the program 150 moves on to the next step block 179 . if a wi - fi command is not received at decision block 176 , then the program 150 tests for scheduled events block 179 . if there is a scheduled event pending at decision block 181 then the switch 61 and led 16 statuses are updated block 182 and the program 150 returns to check for ping timeouts decision block 167 . if there are no scheduled events pending decision block 181 then the program 150 returns to check for ping timeouts decision block 167 . in fig2 , a program 170 is executed when the microcontroller 41 receives an interrupt signal at block 201 from the radio 50 ; i . e ., when the apparatus 10 receives a command , as in fig1 . if the ssid and the ip ( internet protocol ) address are valid t decision block 202 , and there is a wi - fi ping at decision block 203 , then a ping response at block 204 is set up . the radio command is set to transmit a response packet at block 205 , and then the interrupt service routine ( isr ) returns at block 213 . if there is no wi - fi ping decision block 203 and the command is not valid decision block 206 , then the command error flag is set block 207 and the isr returns at block 213 . if the command is valid decision block 206 and the read command is executed at decision block 208 , the new data is written into the transmit ( tx ) buffer at block 209 and the radio command is set to transmit a response packet at block 205 , and the isr returns at block 213 . if the read command is not executed at decision block 208 , then data is retrieved from the receive ( rx ) buffer at block 211 , the command pending flag is set at block 212 , and the isr returns at block 213 . the apparatus 10 permits the user to configure the apparatus 10 out of the box using a web user interface ( webui ), a personal computer (“ pc ”) program or a wifi enabled hand held device ( smartphone ) via ad - hoc wireless , allowing the user to program in home network information , such as the wireless router ssid ( service set identifier ) and security keys , as necessary for web connectivity . a networked system 140 of the preferred embodiment is shown in fig1 . the webui is preferably hosted on the apparatus 10 and is accessible via interconnected network devices . the webui , pc program or wifi enabled hand held is addressable via the assigned ip address of the apparatus 10 . the apparatus 10 can be controlled from various devices such as , but not limited to , computers 143 or mobile handhelds 210 . in a typical network , the router 144 and the access point 145 provide the wireless connectivity between the apparatus 10 and the remote , such as a smart phone 210 . an alternative embodiment of the system 140 is illustrated in fig1 a . in this embodiment , the mobile handheld device 210 wireless communicates directly with the antenna 50 of the apparatus 10 preferably using a wifi communication protocol . fig2 shows a smart phone 210 displaying touch screen commands 215 of an application for controlling power to electrically powered devices plugged into the apparatus 10 . in fig1 , a system 141 shows a television 146 plugged into the first installed apparatus 10 , which is plugged into a wall outlet 31 . another system 142 shows a printer 146 a and a monitor 146 b plugged into a secondary apparatus 10 b , which is plugged into a wall outlet 31 b . the first installed apparatus 10 is the master apparatus 10 and monitors the network for any additional apparatus 10 b . when a new apparatus 10 b is detected on the network , the first apparatus 10 remotely manages other apparatus 10 b using a single webui , pc program or wifi enabled hand held . the user will either : a ) logon to the original apparatus 10 and have selectable tabs and additional options to manage all of the apparatus 10 b on the network ; or b ) manage each apparatus 10 b discretely using individual ip addresses . local user settings to the individual apparatus 10 b supersede commands and / or timers from the master apparatus 10 . the apparatus 10 is compatible with various web browsers such as , but not limited to , mozilla firefox , microsoft explorer and google chrome . a simple webui home page allows individual management and supervision of each socket 11 such as , but not limited to , setting multiple timers and toggling on / off selections of individual sockets 11 . an example of a web page , of a status window 190 , is shown in fig2 . the status page 190 displays the status of the devices and users can turn devices off or on from this page . fig2 shows another example of a web page , a report window 200 that a user can access to generate a report in order to analyze or compare the consumption of energy by devices or activities or dates . yet another embodiment of the present invention is illustrated in fig2 . in this embodiment , the apparatus 10 is a junction box with a cord 15 having the three wires 42 - 44 and the antenna 50 . the junction box contains a high power relay 49 and most of the circuitry 48 shown in reference to fig6 . the loose wires 42 - 44 can be hard wired to various electrical powered devices and a fixed ( household ) power source or a mobile ( generator ) power source . the junction box is preferably a 4 inch × 4 inch non - metallic box . the junction box embodiment can be utilized with 115 volt applications , 220 volt applications and three - phase applications . yet another embodiment is shown in fig2 a . in this embodiment , the apparatus 10 is a junction box with a cord 15 connected to plug 13 on one end and a socket on the other end . the junction box contains a high power relay 49 and most of the circuitry 48 shown in reference to fig6 . the junction box is preferably a 4 inch × 4 inch non - metallic box . the junction box embodiment can be utilized with 115 volt applications , 220 volt applications and three - phase applications . yet another embodiment is illustrated in fig2 . in this embodiment , the apparatus has a cord 15 with the circuitry is in a central region of the cord 15 and shown as a bulge 12 in the cord 15 . the cord has a plug 13 on one end and a socket 11 on the other end . a pushbutton switch 14 on the apparatus 10 , when activated , preferably resets the apparatus 10 to the factory default conditions for the configuration settings . the apparatus 10 has a pair of led indicators 16 and 17 that are on when the apparatus 10 obtains and maintains a wireless connection to the lan ( local area network ) and off when the apparatus 10 does not have a wireless connection to the lan . the led indicators 16 and 17 also preferably represent the state of the outlet power for the apparatus 10 as well , which is preferably accomplished by blinking in a set pattern . alternatively , the led indicators 16 and 17 flashes accordingly to indicate the status of the wireless connection . yet another embodiment is illustrated in fig2 a . in this embodiment , the apparatus has a cord 15 with the circuitry is in a central region of the cord 15 and shown as a bulge 12 in the cord 15 . the cord has the three wires 42 - 44 and the antenna 50 . the loose wires 42 - 44 can be hard wired to various electrical powered devices and a fixed ( household ) power source or a mobile ( generator ) power source . a pushbutton switch 14 on the apparatus 10 , when activated , preferably resets the apparatus 10 to the factory default conditions for the configuration settings . the apparatus 10 has a pair of led indicators 16 and 17 that are on when the apparatus 10 obtains and maintains a wireless connection to the lan ( local area network ) and off when the apparatus 10 does not have a wireless connection to the lan . the led indicators 16 and 17 also preferably represent the state of the outlet power for the apparatus 10 as well , which is preferably accomplished by blinking in a set pattern . alternatively , the led indicators 16 and 17 flashes accordingly to indicate the status of the wireless connection . from the foregoing it is believed that those skilled in the pertinent art will recognize the meritorious advancement of this invention and will readily understand that while the present invention has been described in association with a preferred embodiment thereof , and other embodiments illustrated in the accompanying drawings , numerous changes modification and substitutions of equivalents may be made therein without departing from the spirit and scope of this invention which is intended to be unlimited by the foregoing except as may appear in the following appended claim . therefore , the embodiments of the invention in which an exclusive property or privilege is claimed are defined in the following appended claims .