From your requirement it looks like you are interested to control electronic / electrical devices with script, for this you need to have embedded modules which is usually microcontroller based, for usb based controlling you can use usbmicro's U451 module, and you'll need some wire, wire cutters, crimpers, and nuts etc to hook it all up.
For web based control you can use some webrelay, for this you need to have 9-28 Volts of power supply, which has got interface for connecting relays, and one Ethernet port for connecting LAN cable from PC to module, control will be either browser based or xml messages, which we can do through scripting. or you can buy Net Control NC-800 electronic module, from which you can control maximum 8 relays, from internet/intranet, buying modules are little expensive.
So if you are familiar with PCB designing , Basic Knowledge of programming 8051 / 8052 Microcontroller, Soldering, usage of breadboard, then you can buy components and can build your own module with less money, afters it can be controlled through scripting.
Probably you can go through
http://www.electronicsforu.com , build your module, come back to us and tell us how you would like to control devices through scripting, what is medium of communication USB/LAN/Wireless, what command / message device will recognize / use to activate or deactivate relay.