title: Pass parameter from array to powershell java program
body: <p>I have a java code that execute a powershell script.My parameters are in a string array that I got from user.</p>
  
  <pre><code>String sentence = clientinp.readUTF();
              String[] parts = sentence.split(",");
  </code></pre>
  
  <p>How should I put the parameters to the script every time I execute the code?
  I tried this code:</p>
  
  <pre><code>String command = "powershell.exe  $Add-DnsServerResourceRecordA -ZoneName -Name -IPv4Address -TimeToLive";
  </code></pre>
  
  <p>But I don't know how can I pass this array to powershell.What should I do?</p>