Thats absolutely perfect, thanks mate.
I had been checking the help files, but tbh, after 8 years my scripting is still absolutely rubbish, the best I came up with was
sockudp -k xbmc 192.168.0.20 8272
which obviously didnt work
So, thanks very, very much.

- I've added that to my script, and now the whole thing is working perfectly... so thanks again.