And, assuming "Program2 -t" outputs "chicken" your script would be the equivalent of "Program1 -q chicken" How can I duplicate this in DOS scripting or other windows scripting? (Windows 7, FWIW) ...
At this point, you are probably asking what this discussion has to do with scripting languages. The point is many modern scripting languages follow the same hybrid concept. Although programs are ...