My guess:

code:
$Key = 'HKLM\Software\CLASSES\exefile\shell\open\command'
$Value = '
$Read = ReadValue($Key,$Value)
If $Read <> '"%1" %*'
$Write = WriteValue($Key,$Value,'""%1"" %*','REG_SZ')
ENDIF
sleep 2

_________________________
There are two types of vessels, submarines and targets.