Use a command to lock the screen