Solved
Forum Discussion
See the example python script in the doc page https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439321/Script
The script needs to consume all the input documents which are passed in its input view. If you do not need the input docs, you could add a loop to drop the docs
def execute(self):
while self.input.hasNext():
data = self.input.next()
filepath="C:\\Profisee\\ProfiseeMatch.bat & exit"
p = subprocess.Popen(filepath, shell=True, stdout = subprocess.PIPE)
p.communicate()
p.wait()
self.output.write (p.returncode)