I am able to enter the find mode in a script.
I would also like to exit/cancel the find mode in a script.
Can this be done?
Take a look at the script editor. To enter find mode, use the command Enter Find Mode. You have two options here, you can allow it pause, and have the user enter the find criteria or you can script the find by having the script use Set Field to set the search criteria and then use the Perform Find script step.
To cancel a find, use the script command Enter Browse Mode.
Enter Find Mode 
Perform Find 
Ron Smith, MD
Retrieving data ...