how to custom pxe Menu item with a auto exec script?

I had a custom menu item by editing pxemenu.txt but how to I add a script in pxelinux.0 and get it to auto execute?