Choosing to start a task only if the PC is connected to AC power