There’s a couple of Lua trim scripts for FSUIPC7 in this thread
Auto trim - remove tediousness while making the process more realistic - Official Microsoft Flight Simulator / Wishlist - Microsoft Flight Simulator Forums