/spec (id) in chat command

You can use something along the lines of this native to forcefully set a client to be in spectator mode, but EasyAdmin already has that built-in - you can either that menu fully or just extract the spectating logic and tie it to a command, instead.