Alright. It's really quick and dirty but it works. I don't have a host so I'll just post the code.
Make an autohotkey script that looks like this for when the power is plugged in:
Run c:\windows\system32\control.exe color
WinWaitActive, Appearance Settings
Send {up}{enter}
Make another script like this for when the power is disconnected:
Run c:\windows\system32\control.exe color
WinWaitActive, Appearance Settings
Send {down}{enter}
Like I said, it's quick and dirty. I'm a noob with autohotkey right now. The appearance window pops up and it takes a few seconds to switch between themes, but it works. Also, any color scheme saved to aero is lost when switching to basic and back. I haven't tried it yet, but I'm sure that the color scheme fix can be worked into the script.