InnoScript Run PowerShell Commands
<p>I am trying to run a powershell command, I know that powershell command works fine but when I try to run it using innoscript it opens up powerscript and shows the command but doesn't seem to run it.</p>

<p>I am basically trying to change the text in a MySql config text file.</p>

<p>This is my code</p>

<pre><code>Filename: powershell.exe; Parameters: "-NoExit {{(Get-Content \""{code:GetConfigPath}\my.ini\"") | ForEach-Object {{ $_ -replace \""max_connections=[0-9]+$\"", \""max_connections=10000\"" } | Set-Content \""{code:GetConfigPath}\my.ini\""}"; StatusMsg: CHANGING MAX CONNECTIONS; Description: CHANGING MAX CONNECTIONS; Flags: runascurrentuser
</code></pre>

<p>If I use the ShellExec flag it says that PSReadLine is not available</p>

<p>screenshot of powershell
<a href="https://i.stack.imgur.com/j8Lfm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j8Lfm.png" alt="enter image description here"></a></p>