@Aaron_Moreng has an example:
C# Execute PerformClick() on a Submit Button Not Firing - ERP 10 - Epicor User Help Forum (epiusers.help)