Think I see what you are trying to do. See if this works any better

 Code:
$shell='%comspec% /c  "D:\Folder\Folder with spaces\Tools\dtexec.exe" /file ' + '"' + $ssispackage + '"' + ' /de MySecretPassword >' + '"' + $ssisoutput + '"'