@p2p, you should make it a foreground command.

If you're trying to have Windows automatically logon during boot, you should use this method instead.