The whole of Psalm 82 needs to be considered and a proper understanding of Psalm 82 in relation to the Judges has a strong bearing on the circumstances of John 10:30-36. The Sanhedrin had tried to arrest Jesus, and now some of them were charging him with blasphemy. Jesus was using Psalm 82:6 to show his own position as God's representative, the Son of God. But it was cutting both ways, because he was also showing that they were the unjust judges and this must have been a major reason why they were further angry with him and sought to stone him. Jesus knew their hearts and they could not answer, similar to when they stoned Stephen. They were playing the part of the unjust judges of Psalm 82:2 and they would soon crucify the Son of God. But God the Father the Judge of the whole earth would vindicate His Son by raising him from the dead and appoint him to be the future Ruler and Judge over the earth. He is a man, the Son of Man of Psalm 8:4, not the second person of the Trinity.
Acts 17:30-31 (KJV): 30 And the times of this ignorance God winked at; but now commandeth all men every where to repent: 31Because he hath appointed a day, in the which he will judge the world in righteousness by that man whom he hath ordained; whereof he hath given assurance unto all men, in that he hath raised him from the dead.
Jesus will fulfil the role mentioned in the following, He will be the new Elohim to replace the unjust Judges.
Psalm 82:6-8 (KJV): 6 I have said, Ye are gods; and all of you are children of the most High. 7 But ye shall die like men, and fall like one of the princes. 8 Arise, O God (Elohim), judge the earth: for thou shalt inherit all nations.
Kind regards
Trevor