Command Line / Perl Power Control Examples

This Windows command line code and Perl example has been tested on:
Web Power Switch III
Ethernet Power Controller II
Ethernet Power Controller
III
48Volt Power Switch
DIN Relay
Vertical PDU
Usage of the compiled version is:
UserUtil <Host>[:port] <login:password> <[n]{on|off|pulse|status}>
Examples:
UserUtil 192.168.0.100:80 admin:1234 5on
<logs in as admin/1234 then
turns outlet 5 on>
UserUtil 192.168.0.100:80 admin:1234 status
<logs in as admin/1234 then requests status>
UserUtil
192.168.0.100:80 admin:1234 *off
<logs in as admin/1234 then turns all outlets off>
Download the command line tool and Perl source here.