Expect script to manage power states on an IP9258 remote power switch