1. Make sure the task actually exist. Go to sense QMC, and choose Tasks under MANAGE CONTENT, and find your task there. Make sure you use the task name and not the associated resource when running qliksensetask.
2. Don't have any funny characters in the task name. I got a problem with a '&' in the task name.