That line is ok for me

Just runt this line in ur pc

code:
$RDD=KeyExist('\\'+remotepc+'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CompBatt')
$RDDL=KeyExist("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CompBatt")
? "$rdd"
? "$rddl"

just see $rdd and $rddl is returning "0" or "1"
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran