Only for the Iran crossing
The onward-flight rule here is specific: British nationals entering Turkmenistan from Iran need special authorisation from the Government of Turkmenistan. The request includes the traveller's name, date of birth and passport details, a copy of an onward flight reservation, and the border crossing you'll use.
Allow time
GOV.UK says the authorisation will likely take about 48 hours but may take longer, and visa fees are paid in cash on arrival. Make sure the reservation's dates leave room for that.
Visa rules are strict
GOV.UK warns that having the wrong visa or overstaying can lead to prosecution and possibly imprisonment.