The reason you're having a problem is because the noun in the menu actually contains the arrow (->) as well. So you will have to account for that.
To tackle this, you need to interact with the object using a noun that accoutns for the arrow. Here's an example:
closestObject(objectId).interact("Use", "<col=ff9040>Selected item name<col=ffffff> -> <col=ffff>Object name"boolean forceLeftClick, int walkDistanceThreshold, boolean isWalkingAllowed, boolean turnCamera);