Pakistan paceman Amir was unplayable at times on a seamer-friendly pitch at Scarborough, finishing with career-best match figures of 10-72.