Having problems with form type custom and reCaptcha

Noticed if I use a self hosted form the Google script gets added to the footer, but if I use a custom form with the action going to my script the Google script recaptcha/api.js does not get added to the footer and the form can be submitted without checking the reCaptcha checkbox.

Is there something I can do to get reCaptcha working with a custom form?

Thank you