Q:

How do I run a program with extremely long arguments from BAT file?

Basically I need to run a program (it's a java program, if that can help) from a bat file that has extremely long arguments, it's about 9000 symbols. The problem is that it seems so it truncates command line to something around 8000 symbols. 
I don't mind using powershell instead if that can help.
Thanks in advance. (And no, there is no way to make arguments shorter)

A:

You could use Start-Process from PowerShell:
$argument = "This will exceed the 8191 character limitation" * 200
Start-Process java.exe -ArgumentList "-jar","path\to.jar",$argument

