As discussed in my previous column, writing inventory to a file is a matter of creating an instance of the FSO, then creating a text file object from that FSO at the path you provide in the script. (I would recommend hard-coding that path into the script so that you always know where to find that inventory, rather than letting users provide the path as an argument to the script.