Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Register Script custom_admin_post

// Register Script
function custom_scripts() {

	wp_register_script( 'my-admin-script', 'http://example.com/custom.js', array( 'jquery' ), '1.0', true );
	wp_enqueue_script( 'my-admin-script' );

}

// Hook into the 'admin_enqueue_scripts' action
add_action( 'admin_enqueue_scripts', 'custom_scripts' );