I'm afraid that might not be possible.
This is done through a series of steps directly linked to wampmanager.exe.
For example, to upgrade from MariaDB 11.4.10 to MariaDB 12.0.2, the following steps are performed:
[switchMariaDB12.0.2]
Action: ParametersRefresh
Action: run; FileName: "E:/wamp64/bin/php/php8.2.30/php.exe"; parameters: "msg.php refreshLogs alllogs automatic";WorkingDir: "E:/wamp64/scripts"; Flags: waituntilterminated; ShowCmd: hidden
Action: closeservices; Flags: ignoreerrors
Action: service; Service: wampmariadb64; ServiceAction: stop; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "sc.exe"; Parameters: "stop wampmariadb64"; ShowCmd: hidden; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "E:/wamp64/bin/mariadb/mariadb11.4.10/bin/mysqld.exe"; Parameters: "--remove wampmariadb64"; ShowCmd: hidden; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "E:/wamp64/bin/php/php8.2.30/php.exe";Parameters: "switchMariaDBVersion.php 12.0.2";WorkingDir: "E:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "E:/wamp64/bin/php/php8.2.30/php.exe";Parameters: "switchMariaPort.php 3306";WorkingDir: "E:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "CMD"; parameters: "/D /C sc create wampmariadb64 binpath=""E:\wamp64\bin\mariadb\mariadb12.0.2\bin\mysqld.exe --defaults-file=E:\wamp64\bin\mariadb\mariadb12.0.2\.\my.ini wampmariadb64"""; ShowCmd: hidden; Flags: waituntilterminated
Action: multi; Actions: mariadb_refresh_start; Flags:appendsection
[mariadb_refresh_start]
Action: run; FileName: "sc.exe"; Parameters: "start wampmariadb64"; ShowCmd: hidden; Flags: waituntilterminated
Action: multi; Actions: refresh_readconfig; Flags:appendsection
[refresh_readconfig]
Action: run; FileName: "E:/wamp64/bin/php/php8.2.30/php.exe";Parameters: "refresh.php";WorkingDir: "E:/wamp64/scripts"; Flags: waituntilterminated; ShowCmd: hidden
Action: RestartReadConfig
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons