How to capture the payment in the case of purchase order?

Hi, I want to apply capture payment in the case of purchase order.
When the user choose the purchase order with payment method in the checkout, it needs to set the capture payment such as authorizenet when creating the invoice of the order.
Is there a way to implement this? It should be made on Magento 2

Regards