I’m using “EasyRSA-Start.bat” OpenVPN script for generate clients.
In cmd, after run, i have to type a command, after he ask to me the pass verb and i have to type “exit” for quit.
I want to make a powershell script for create automaticly clients.
I’m using
<code>$cmd = "EasyRSA-Start.bat";
cmd.exe /c $cmd
</code>
<code>$cmd = "EasyRSA-Start.bat";
cmd.exe /c $cmd
</code>
$cmd = "EasyRSA-Start.bat";
cmd.exe /c $cmd
That’s works, but how can make for don’t have to type manualy prompt texts.
I’m looking for Start-Process, Invoke-Item or Invoke-Command but i don’t find the way.