Increase the number of available custom dimensions in JAVA application

I am trying to increase the number of available custom dimensions in JAVA application by executing the command mentioned in the dashboard and documentation for increasing the custom dimensions, but the command is not executed , only the editor is opened
This is my code :
String command = powershell.exe C:\xampp\htdocs\matomo\console customdimensions:add-custom-dimension --scope=action --count=1 ;
Process powerShellProcess = Runtime.getRuntime().exec(command);

no need to reply . I found the solution I add “php” befroe the command and I used interactive shell execution