title: VB equivalent to powershell
body: <p>I am very new to <code>powershell</code> and sometimes this question may be so simple  </p>
  
  <p>Can please anybody please tell me what is the equivalent to the following(vbscript) in PowerShell   </p>
  
  <pre><code>set obj = wscript.createobject( wscript.shell )  
  Obj.Run $smCmnd  
  </code></pre>
  
  <p>What is the use of <code>wscript.shell</code>.<br>
  After a bit of search I found first line can be presented as;  </p>
  
  <pre><code>$obj  = New-Object -ComObject WScript.Shell  
  </code></pre>
  
  <p>But have have no idea how to call Run method (<strong>$obj.run(...)</strong>???)  </p>
  
  <p>If I run <code>cmd.exe</code> with some commands as the <code>smCmnd</code>, How can I keep cmd.exe without close and to run another command later in same console??  </p>
  
  <p><strong>EDIT</strong><br>
  I am writing <code>PS script</code> and it will be call from another application. Basically it will do some folder creations and file coping etc. I would like to open CMD.exe and show all the commands running on that. How to use same cmd prompt through out my whole script. </p>