Is an employer acting unlawfully if it tells a third party such as an employment agency that it would prefer to appoint a man for the job?

Instructing an employment agency to apply discriminatory practices is outlawed under the Equality Act 2010 and is unlawful irrespective of whether the instruction is subsequently carried out. Both the employer that gave the instruction and any employment agency that complied with it would be liable.