How can I execute a .bat file when Blender starts? I have to start a postgresql server when blender starts. To start the server I use a .bat file I start manually.

I want to automatically start the server (execute the .bat) when Blender starts. I tried this script but it not working. ideas?

import subprocess
filepath="C:\Users\PORTABLE\Desktop\pgsql_binaire\pgsql\test.bat"
p = subprocess.Popen(filepath, shell=True, stdout = subprocess.PIPE)
stdout, stderr = p.communicate()
Would it not be simpler to start both blender and postgresql using the same .bat file. Then point any blender shourtcuts/links you have at that file?