I don't know whether this is an issue in the workflow engine itself or in this particular workflow but I'm unable to run scripts on files stored on a SMB/CIFS network storage connected using the external storage option of NC (31.0.3).
None of the file paths passed to the script is available when the cron job is run.