How to center menu windows/commands

I'm looking for anything that would let me center the menu but I can't find anything in the scripts. Is there any community scripts that could do this, or is there an easy solution that I missed?

EDIT:
NEVERMIND, AGAIN
I found out that you could just add @command_window.x = *some integer value*
and @command_window.y = *some integer value*
below line 26 or 27 on Scene_Menu, you can also do this same thing in Mobius' menu command manager by adding the same thing inside the method "create_command_window"
Glad you figured it out!

If you ever have a window with a variable height/width, I believe you can use the "width" and "height" properties of both the screen and the window in the line of code (rather than a simple integer value) to tell RPG Maker where to place the window onscreen so it's centered - the formula is (Screen Width or Height - Window Width or Height) * 0.5

Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/how-to-center-menu-windows-commands.111024/