Issue with Node-based Cordova Hook

I'm playing around with the Cordova hooks capabilities and I'm trying to test using a node application as a hook. In this article: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ it references running node applications, so I know it's possible.

I've created a simple node application that I'm using to test the before prepare and after prepare process:

#! /usr/bin/env node
console.log("this is a node module");

When I run my prepare, I get the following error:

C:\Users\jwargo\dev\lunchmenu>cordova prepare
The system cannot find the path specified.
Hook failed with error code 1: C:\Users\jwargo\dev\lunchmenu\hooks\before_prepare\test.js

I can't find any information anywhere about what an error code of 1 means here.

I've tested the node code and it runs fine with "node test.js" and when I execute test.js from the command line Windows simply launches my default editor.

So, can anyone tell me what I'm doing wrong or what I need to do to be able to execute a node application as a hook with the Cordova CLI?

Figured it out with some help from the Cordova dev team. The space in my shebang was causing the problem. I removed it and the problem went away.