Molly,
A couple of suggestions. For the column name, you need the attribute name, see this screenshot from the documentation:
Also, it may be more straightforward to use a nanoflow, have you tried that?
Mike
Like Mike said I would maybe use a nanoflow for this.
In the nanoflow you can check if your object meets the criteria.
Create a nanoflow and add a decision → $object/status != EnumValue AND $ocject/dueDate < [%CurrentDateTime%] → if this criteria is met return true.
Think this would be easier than JavaScript and I hope it works.