How can i write this powershell cmdlet in perl script : <pre><code> invoke-command HOST01 { cmd /C dir /S /B D:\file1 }
</code></pre>

<p>How can i include this command in a perl script i tried using </p>

<p><code>qx(invoke-command HOST01 { cmd /C dir /S /B D:\file1 })</code> it doesn't work ,the program runs forever.</p>
