@ECHO off
$BIOS= Get-WmiObject -computername \"BAHRIATSG2-PC\" -Namespace
root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface
$BIOS.SetBIOSSetting(\'Setup Passwor
I think this is the simplest and clearest way because it don't requires any superfluous switch; just plain PowerShell code:
@ECHO off
PowerShell ^
$BIOS= Get-WmiObject -computername \"BAHRIATSG2-PC\" -Namespace; ^
root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface; ^
$BIOS.SetBIOSSetting('Setup Password',' TheBIOSPassword',' ')
pause
Just add a ; ^
at end of each line and escape each quote with backslash.