title: How to run powershell command in batch file
body: <pre><code>@ECHO off
  
  $BIOS= Get-WmiObject -computername "BAHRIATSG2-PC" -Namespace 
  root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface
  
  $BIOS.SetBIOSSetting('Setup Password','&lt;utf-16/&gt;TheBIOSPassword','&lt;utf-16/&gt;')
  
  pause
  </code></pre>
  
  <p>when i save as .bat file and run it does not working  otherwise it is working properly in powershell when i entering manually..</p>