в WGET (для WINDOWS BATCH), это примерно так:
OtherApplication -arg1 -arg2 > temp.txt set /p MyVariable=<temp.txt