Issue with assigning a value to a String Item: Cannot assign a value in null context

As per my understanding the send ommand function is expecting the item name as string:

sendCommand("securityTriggerItem","trigger")