And you need to appear in court to make a record.

The more typical thing to do would be to get a divorce in the country where you presently reside. If your goal is to divide marital assets based in the U.S., that's not going to happen in an overseas court without your spouse's consent (assuming it's possible under the laws of the nation with your spouse's consent), but you can get a judgment of divorce in pretty much any nation that will be honored by the U.S.