How to run the user's custom script after installing the system with the Anaconda installer?

Hi!I want to custom anaconda installer,but I want the Anaconda installer to run a user-defined script before displaying the installation completion screen.I need write a ks files?or other things?

OEMDRV /ks.cfg what is mean?