Add direction property to scriptInfo.{script}