I think your best bet would be to either use the NAS scheduler and use callbacks to the dirscan probe to look for the file and then a callback to disable the processes probe. The other option would be to use a batch/shell script to check for the file and the PU utility to disable the processes probe.