This task will fail anywhere else than your local environment.
You should add this path to your local environment variable $PATH and just run the shell command NaturalDocs in the task.
This way, anyone can install it the way he wants.