"Pakistan shall take all measures at its disposal to ensure that Mr. Jadhav is not executed", court President Ronny Abraham said at a hearing in the ornate Great Hall of Justice in The Hague.
Pakistan's two crucial arguments didn't work at the International Court of Justice (ICJ) against an Indian appeal to save Kulbhushan Jadhav, an alleged spy sentenced to death.
The court told Pakistan to take all possible measures to ensure that Jadhav is not executed before the global court gives its final verdict.
Asked if India moving the ICJ opens a door for Pakistan to raise bilateral issues internationally, the former external affairs minister said he is sure the government would have weighed all options and their pros and cons.
Jadhav, a former navy officer, was sentenced to death by a Pakistani military court last month after being convicted of spying. Harish Salve, who is representing Jadhav at the ICJ, has told the court that India was also not granted consular access to him despite repeated attempts.
The judge said that the rights invoked by India in the case are plausible and that all parties under Vienna Convention have rights to provide consular assistance to their nationals.
"India has the right to seek consular access for Jadhav", he added.More news: Reactions to the death of Fox News founder Roger Ailes
More news: Iran TV censors Rouhani documentary ahead of elections
More news: United States airstrike hits pro-Assad forces in Syria
Pak must assure that Jadhav will not be hanged: ICJThe court said that appropriate to order that Pakistan should give assurance that Jadhav is not executed while the matter is pending.
Swaraj said, "We are grateful to Harish Salve for presenting India's case so effectively before ICJ".
"It [the court] considers that the mere fact that Mr. Jadhav is under a death sentence and might therefore be executed is sufficient to demonstrate the existence of a risk of irreparable prejudice to the rights claimed by India".
The government wants the world court to decide whether Pakistan has broken the convention and worldwide human rights law.
Subrato Mukherjee said: "It is a tight slap on the face of Pakistan". In securing a unanimous verdict, India has succeeded in exposing Islamabad's consistent undermining of worldwide norms. The ICJ has said that the death sentence of Kulbhushan must be stopped until the final verdict announced by the court. He accused Pakistan of "egregious violations of the Vienna convention" since his arrest in March 2016.
The court also rejected Pakistan's contention that the 2008 case excluded the ICJ's juridisction.
India and Pakistan routinely accuse one another of sending spies into their countries, and it is not uncommon for either nation to expel diplomats accused of espionage, particularly at times of high tension.