Set WshShell = CreateObject("WScript.Shell") cmd = """C:\pgsql\bin\pg_ctl.exe"" stop -D ""C:\pgsql\pgdata"" -m fast" WshShell.Run cmd, 0, False