hello
first you must to activate capability to use custom script by updating following line in manager.properties configuration file (in SymantecDLP\Protect\config directory)
com.vontu.manager.policy.showcustomscriptrule
(set it to true). Then restart DLP services.
After that you should be able to add custom file type signature detection rule (available in file properties section) in your DLP policy. Then you need to paste and copy your script in dedicated text box.
Regards