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) ...
System administrators and power users utilize Windows PowerShell to perform all sorts of advanced and administrative tasks. With PowerShell, administrators can execute powerful scripting programs or ...