Am using the following command

RedirectOutput("hardware.log") = 0
ENDIF

But then it just creates a hardware.log file with this in it
Opened 'hardware.log' at 10:17:42

I need the screen output to go to this log file preferable with the users name as the filename.

Any help appreciated.