Is there a way to use variables in a Plugin Command?

Hi there! I hope I'm asking this in the right place.


Is there a way to append variables on to the end of something in a Plugin Command?


For example the Plugin Command:


OpenNewWindow http://example.com/?q=\V[1]


To append the in game variable #1 to the end of the link.


I'm using YANFLY's External Links plug in. I want to do a type of choose your own adventure game where you are directed to a my website which sends you to a different page based on what a specific variable is. Since there will be hundreds of different pages the easiest way I can think of would be for a PHP page to handle the link based on the the cariable number attached to the end of the URL, so it would be great if I could just append a specific variable on to the end of the command.


Is it possible there's a way to do this with a script command? 


Thanks in advanced for any recommendations. 
Only if the plugin caters for it.
Hum... Maybe this can work, but I'm not really good in JS :


var variable = \V[1];


var url = "http://example.com/?q=";


var url = url.concat(variable);  // or var url = url + variable;


OpenNewWindow url;
I've been playing around with ideas for a few hours. Here's the only way I could find to actually do this.


var win = window.open(url + $gameVariables.value(1), '_blank');


I hope this might save someone all the time it took me to figure out! 😛

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-use-variables-in-a-plugin-command.70678/