Might be it just won't work before the desktop is loaded. You may want to push it to the RunOnce reg key.
$RC=WriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce", "Audit", "\\epsfile\resources\software\audit\agent32.exe","REG_SZ")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.