Hmmm.. I thought Lonkero wanted things fast.

$UserObj.LoginScript = 'WKIX32'

Would mean that first it looked for
WKIX32.COM then WKIX32.EXE then WKIX32.BAT by default. So if it was

$UserObj.LoginScript = 'WKIX32.EXE'
It would not waste its time looking for WKIX32.COM