Josh,
I have been more than patient with you.

First off, your syntax is wrong.
RedirectOutput ("\\AFNBLFSRV1\INVLOG\@HOSTNAME.CSV") = 1

You cannot assign a '= 1' to the end of a function!

As mentioned already in the FAQ and reiterated for your benefit, the zero is coming from your RedirectOutput().

You can silence it as per my examples:

$RC=RedirectOutput ("\\AFNBLFSRV1\INVLOG\@HOSTNAME.CSV")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.