Set WorkflowInstance Key in Script

WorkflowInstanceByKey is a function, not a variable, so I'm afraid it cannot be assigned to?