i can not seem to the the redirect to work i can get all the info i want but i can not get it to a file

code:
=================================================
Use M: "\\cpierce\errorlog"

; 1) Basic computer info for reference

ReDirectOutput ("M:\Inventory\@WKSTA.txt",1)

?"NetBIOS name = "@WKSTA

?"Last login by "@USERID

?"OS = "@PRODUCTTYPE" with "@CSD

?"Memory = "MemorySize(0)" MB"

?"Processor type is "@CPU

?"Processor speed is "@MHZ

?"IP address = "@IPADDRESS0

?"MAC address = "@ADDRESS

?"This information was gathered on "@DATE" at "@TIME

=======================================================