How to get a click on object command working?

Thanks wesbun i’ll give this a go