'Windows Terminal resize window with MODE

Is there any way to run a .bat file with the mode command to resize the console window within Windows Terminal?

Because when I run the command while Windows Terminal is as default console, the command just doesn't work. When I change the default console to CMD, the command works normally.

The command I'm using is:

@echo off
mode 75, 40

... rest of the code here ...


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source