find the suitable api for triggering the command the command is "toggle.window.commandCenter" in my case vscode.commands.executeCommand("toggle.window.commandCenter") (typescript) was giving the result