This feature was removed for 3rd party. But I don’t know why, because I don’t there is reason to block it.
In ExtendScript the underlying action manager code is
executeAction(stringIDToTypeID("togglePalettes"))
In UXP it would translate as:
const {executeAsModal} = require("photoshop").core;
const {batchPlay} = require("photoshop").action;
async function actionCommands() {
const result = await batchPlay(
[
{
_obj: "togglePalettes",
_options: {
dialogOptions: "display"
}
}
],
{}
);
}
async function runModalFunction() {
await executeAsModal(actionCommands, {"commandName": "Action Commands"});
}
await runModalFunction();
…and it does not work.