How to embed script in custom post type with dynamic value

How to embed script in custom post type with dynamic value