Hi,
You can pass down variables between the IPIVR and ICM using the script nodes 'Get/Set Enterprise Call Info' in the Call Contact set in CRS script editor.
You can use too the Expanded Call Variables in IOCC/ICM ,but ypu need to set up those variables in CRS script editor in the 'Settings'->'Expanded Call Variables' in the acript Editor.
You can inform to ICM if the IVR script was worked fine or not using the 'ICM Result' node in the ICM set in CRS script editor. If you set this node to true, this means that the 'Run VRU script' node in ICM Script Editor uses the 'true' leg to go on with the ICM script execution. If you set the node to 'false' the ICM script node goes pon on the false leg.
Hope this helps,
Juan Luis