That's great, but you are missing the point.

The (current) problem is that the batch/script is not getting executed.

It needs some debug code added to both to confirm that they are actually being called at all, and what the parameter is if appropriate.

Personally I'd dump YGF, code the new file detection in KiXtart and run it as a scheduled task.