title: command line argument from java code to exe are not sent completely
body: <p>I am executing .exe program from Java program, sending string as command line argument. .exe program runs and print on console command line arguments which I read it in java through BufferedReader object. After reading it I found out that argument is not getting completely to exe. 
  Here is the string I am sending.</p>
  
  <pre><code> String script3 = "$tempDoc = '&lt;QueryList&gt;&lt;Query Id=\"0\" &gt;';$selectNodes = $doc.SelectNodes('/QueryList/Query/Select');$invalidLog=\"\" \r\n" + 
          " foreach($s in $selectNodes)\r\n" + 
          "{$s=$s.Path -replace'\"';if($logs -contains $s){$tempDoc+='&lt;Select Path=\"'+$s+'\"&gt;*&lt;/Select&gt;';}else{if(!$invalidLog){$invalidLog = $s;}else {$invalidLog=$invalidLog +',' + $s;}}} $tempDoc += '&lt;/Query&gt;&lt;/QueryList&gt;';$query = $tempDoc;$Results='&lt;Error&gt;EventLogNotFoundException:Unable to find '+$invalidLog+' event logs.&lt;/Error&gt;';\r\n" + 
          "$slp = \"false\"}else {$Results= $tempResult};$flag=\\\"false\\\";}else{if($Results.count -eq 0){$Results +=$tempResult;}else {$tempResult.removeAt(0);$Results += $tempResult;}\r\n" + 
          "$startTime=$endTime;}}}}\r\n" + 
          "$Results+= '&lt;EndofPoll&gt;';\r\n" + 
          "$RunspacePool.Close() | Out-Null\r\n" + 
          " $RunspacePool.Dispose() | Out-Null \r\n" + 
          " $counter=$counter+1;$Results | Out-String;if($slp -eq \\\"true\\\"){sleep $SleepSeconds ; [Console]::Out.Flush();[System.GC]::Collect();invoke-command -scriptblock {[Console]::Out.Flush();[System.GC]::Collect()}}}}\"";
  </code></pre>
  
  <p>After reading from BufferedReader object I found it as</p>
  
  <pre><code>$tempDoc = '&lt;QueryList&gt;&lt;Query Id=0 &gt;';$selectNodes = $doc.SelectNodes('/QueryList/Query/Select');$invalidLog=" 
   foreach($s in $selectNodes)
  {$s=$s.Path -replace'';if($logs-contains
  </code></pre>
  
  <p>Is there anything I am missing. Thanks.</p>