Software inventory, registry values and event logs are just some of the examples that spring to mind.
I expect that you can think of many scripting scenarios where it would be advantageous to output the data, not to the screen, but to a file. This page concentrates on creating a text file with a VBScript.