After emergence, adult flies and other insects select a suitable perch and expand their wings. Wing expansion is governed by the hormone bursicon and can be delayed under adverse environmental conditions. How environmental factors delay bursicon release and alter perch selection and expansion behaviors has not been investigated in detail. Here we provide evidence that in Drosophila the motor programs underlying perch selection and wing expansion have different environmental dependencies. Using physical manipulations, we demonstrate that the decision to perch is based primarily on environmental valuations and is incrementally delayed under conditions of increasing perturbation and confinement. In contrast, the all-or-none motor patterns underlying wing expansion are relatively invariant in length regardless of environmental conditions. Using a novel technique for targeted activation of neurons, we show that the highly stereotyped wing expansion motor patterns can be initiated by stimulation of N(CCAP), a small network of central neurons that regulates the release of bursicon. Activation of this network using the cold-sensitive rat TRPM8 channel is sufficient to trigger all essential behavioral and somatic processes required for wing expansion. The delay of wing expansion under adverse circumstances thus couples an environmentally sensitive decision network to a command-like network that initiates a fixed action pattern. Because N(CCAP) mediates environmentally insensitive ecdysis-related behaviors in Drosophila development before adult emergence, the study of wing expansion promises insights not only into how networks mediate behavioral choices, but also into how decision networks develop.