title: How to manage dcu-cli GUI in powershell remote job
body: <p>I'm currently working on a script to update remote machine through Powershell, for that I'm using dcu-cli.exe.</p>
  
  <p>It works fine if ran directly on Local Machine like :</p>
  
  <pre><code>"C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" /ApplyUpdates
  </code></pre>
  
  <p>But when used within Invoke-Command the script get stuck forever...</p>
  
  <p>So in order to troubleshoot my script I would like to see the live output of the command above...</p>
  
  <p>When you run dcu-cli.exe in a cmd, you see the progress in the cmd GUI, is there any possibilities to redirect the live out-put to my Powershell prompt ?</p>
  
  <p>I would also have some question regarding dcu-cli syntax as here are my thoughts for complete update :</p>
  
  <pre><code>Invoke-command -computername $Computer -credential $CredObject -Scriptblock {
  cmd /c start /wait "" "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" -argumentlist 
  /configure -biosPassword="$usingBIOSPWD" ;
  cmd /c start /wait "" "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" -argumentlist /ApplyUpdates }
  </code></pre>
  
  <p>Above, script get stuck with no errors...I'd like it to first save the bios-password from my script variables and then run all the updates.</p>
  
  <p>Problem is dcu-cli.exe doesn't accept his own switches sometimes (while I'm trying all kind of possibilities...Start-process ; cmd ; &amp;.....)
  Is it possible when running cmd through powershell to see the cmd live output ?</p>
  
  <p>If I run dcu-cli with cmd it run fine but I'm not sure how to pass the object and the variable into a batch or any other way that would allow me to see the installation progress...</p>
  
  <p>Any help would be greatly appreciated as I'm working on this for weeks and I'm a newbie in Powershell :)</p>
  
  <p>PS : Yes I did use google about it already </p>