Can i create scripts and use them for auto attendant on Unity Connections 2.0
In Unity Connection (and Unity) AA is built using Call Handlers and not scripts as in CUE. Have a look;
System Administration Guide for Cisco Unity Connection Release 2.x
Managing Call Handlers
Hope this helps!