If this was a programming challenge I'd say it can be done using AutoIt, VB Script, or Powershell easily.
I'm assuming your post needs to be moved and the solution will be made available. Meanwhile, I suggest looking at the setting for your WMI performance adapter and the wireless zero configuration. WMI should be set to "manual" Startup Type and Wireless Zero should be set to "Automatic". If those are the settings already present then it must be something else. I also suggest a wireless helper utility could be the culprit, but more info is needed. What model of computer you got there?