title: How can I launch .cmd files on a remote machine?
body: <p>I need to be able to launch a .cmd file that is on a remote machine, <em>from within the directory that the file resides on that machine</em>.</p>
  
  <p>I've tried: <code>invoke-command -ComputerName test123 -ScriptBlock { cmd /c c:/myfile.cmd }</code> in powershell, which launches the .cmd, but then fails because it can't find the corresponding .cmds that this one launches (which all reside in the same directory).</p>
  
  <p>Is there a way to launch this .cmd file, and have it's execution persist? i.e., even after the powershell window is closed, the .cmd will continue to run on the remote machine.</p>