Sh.execute returns a 1 Access Denied?

On Windows I get an access denied error when trying to execute a shell command.

Dim CmdString As String = "pg_dump --dbname=postgresql://postgres:" +DbPassword + "@localhost:5432/" + DbName + " > "
CmdString = CmdString + PathToSaveFile + SiteName + "_" + ds + ".backup"

// pg_dump: too many command-line arguments (first is "Self")
// Try "pg_dump --help" for more information.
Dim Sh As New Shell
Dim er As Integer
Dim ErDesc As String

Try
  Sh.Execute(CmdString)
  er = sh.ErrorCode
  ErDesc = sh.Result

Can anyone advise what this really means how to correct it?

The command works when executed alone using the windows command prompt

Thanks,
Tim

Found the problem…
There was no "" after the folder paths.

Tim