What do you mean by "delegate to a script"?
If you mean to create CT using script such as PHP then you can use Proxmox API. There are API parameters to set networking value, i.e: ip address, interface, hostname. For complete API parameters please refer to:
http://pve.proxmox.com/pve2-api-doc/