sendCommand and itemName from variable

Glad you got it to work,
As for your remaining question, maybe this post helps you a little further: