First of all, please make sure you could run the script from x86 powershell console without any problem or prompt for user input.
You may need to configure your browser to set a larger timeout value for http request.
If you access webcommander via proxy, you need to configure proxy timeout settings as well or bypass it.
You could also use workflow, which won’t cause browser timeout because the request is via AJAX, to run the command.