@ECHO off
$BIOS= Get-WmiObject -computername \"BAHRIATSG2-PC\" -Namespace
root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface
$BIOS.SetBIOSSetting(\'Setup Passwor
Enclose your PowerShell code in,
powershell -Command "& {}"
Remember to separate all statements with ;
and to enclose your "
with a quoted string, i.e by using ""
powershell -Command "& {$BIOS= Get-WmiObject -computername ""BAHRIATSG2-PC\"" -Namespace root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface; $BIOS.SetBIOSSetting('Setup Password',' TheBIOSPassword',' ')}"