serial script communication to XY table

Is it feasable to run such a sketch from arduino as a standalone device, without a PC?

Yes but if your table has a USB input then you need to get a USB host interface on your arduino. There are shields for this.