Got my setup fixed @rickkas7. I had two installs and confused paths with permission errors. Found a better way to set the global npm folder.
Here’s the new device Setup script that I’ve come up with. It’s based on Shell and it’s been rock solid. It only takes 30 seconds per device, so I think I’ll head into my office tonight and claim those 60 devices 
Here’s what the script currently does:
- Query the computer (OSX or UNIX) for the relevant USB port
- Set the device to listening mode (if required)
- Query the device for the deviceID
- Set the Wifi Credentials using credentials stored in text file
- Claim the device (make sure you’re logged in with the correct user!)
- Set the device DFU mode, so we can upload firmware
- Flash our device test & setup firmware via Serial
I’ll also add some Project specific calls using curl to it also that will simplify the process even further for me, but this should be a good start for others needing something similar.