title: PsExec not returning output
body: <p>I have created a ruby script to open Powershell and run a module I have created in it, the following command is what I am using to do this; </p>
  
  <p><code>cmd /c C:\\NaviMedix\\Shared\\Bin\\psexec -s C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe C:\\HTTP\\loadServerManager.ps1</code></p>
  
  <p>When running this locally in my own VM It works correctly and gives me the following output. Although when I store it in a cookbook as a library and run it through Run Deck it gives me a different output. </p>
  
  <p><strong>Local output:</strong></p>
  
  <pre><code>PsExec v1.86 - Execute processes remotely
  Copyright (C) 2001-2007 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe on SCSBCHEFTE
  
  
  C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe exited on SCSBCHEFTEST04 with error code 0.
  
  Welcome to Powershell augmented with NaviNet tools.
  
  
  Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules
  
  
  ModuleType Version    Name                                ExportedCommands
  ---------- -------    ----                                ----------------
  Manifest   2.0.0.0    AppLocker                           {Get-   AppLockerFile...
  Manifest   2.0.0.0    Appx                                {Add-AppxPackage, ...
  Manifest   1.0        BestPractices                       {Get-BpaModel, 
  
  Success       : True
  RestartNeeded : No
  FeatureResult : {}
  ExitCode      : NoChangeNeeded
  
  
  Name                      : NET-HTTP-Activation
  DisplayName               : HTTP Activation
  Description               : HTTP Activation supports process activation via
                          HTTP. Applications that use HTTP Activation can
                          start and stop dynamically in response to work
                          items that arrive over the network via HTTP.
  Installed                 : True
  InstallState              : Installed
  </code></pre>
  
  <p><strong>Run Deck output:</strong></p>
  
  <pre><code>PsExec v1.86 - Execute processes remotely
  Copyright (C) 2001-2007 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  Connecting to local system...
  Starting PsExec service on local system...
  Connecting with PsExec service on SCSBCHEFTEST01...
  Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe on SCSBCHEFTEST01...
  C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe exited on SCSBCHEFTEST01 with error code 1.
  </code></pre>
  
  <p>I want the local output to appear in Run Deck output but can not seem to make it work. Can anyone help me to solve this problem please?</p>