Runtime.getRuntime().exec invoked with an interpolated or concatenated variable allows OS command injection.
Avoid shell execution with untrusted input; use a fixed argument array and validate inputs against an allowlist.