First you need to get their SteamID64.
What a SteamID64 looks like 76561197960265728.

You can get their SteamID64 by using steamrep ( https://steamrep.com/ )

After that open the console and type tf_party_request_join_user <Their SteamID64>