What exactly do you mean when saying "does not work" running on NAS?
Keep in mind that C:\Temp will be searched on the machine that is running the NAS service.
Additionally, MESSAGEs do not work in NAS of the NAV 2013 RTM version. In order to be able to read them again in the WIndows event log, you will need to upgrade to build 34550 (KB2830230) or higher.