title: start-process in PowerShell 3.0 script doesn't work but it was working in 2.0
body: <p>I upgraded our PS version to 3.0 and some of our scripts stopped working. After a lot of debugging I realized there is an issue with the Start-Process command.</p>
  
  <p>Basically, when I run the Start-Process directly in the PowerShell cmd it does run the program with the correct arguments. However, when I run the script, it won't give any error but the program will not run.</p>
  
  <p>The script is a bit long, but this is the way I can test the snippet that's failing. </p>
  
  <pre><code>$SERVER = 'servername'  
  $PORT = 'xxxx' 
  $TPath = 'E:\epicor\PowerShell\export\POAutomation\'                        
  $User = 'username'
  $Psw = 'password'
  $Import = 'PO Combined'
  $file = $TPath + 'AutomaticPOHeaders.csv' 
  $DMTPATH = 'E:\epicor\Epicor905\Client\dmt.exe'
  
  
  $Param = "-ArgumentList `'-user=`"$User`" -pass=`"$Psw`" -server=$SERVER -port=$PORT -import=`"$Import`" -source=`"$file`" -add=true -update=false -noui=true`'"
  Start-Process $DMTPATH $Param -Wait
  "Finished"
  </code></pre>
  
  <p>I even wrote to a log file to check if the $Param string is well formed and if the Start-Process command is also well written. When I copy paste the strings in the log file into the PS command line, they run successfully.</p>
  
  <p>I've been stuck with this more than 4 hours now.</p>
  
  <p>Thanks in advance.</p>