Window not hidden

Hi,

I am trying to run a commandline with execute-process Minimized or Hidden and it seems not working. Am I doing right? Any other alternative?

<code>

Set-StrictMode -off
$scriptDirectory=&amp;quot;C:\Sovgarde\OracleWarehouseBuilder11gR2_Anv1&amp;quot;
[string]$moduleAppDeployToolkitMain = &amp;quot;$scriptDirectory\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1&amp;quot;
. $moduleAppDeployToolkitMain

set-variable -name Hash_Securites -visibility public -scope script -Value @(
	                @{
		               EXE=&amp;quot;$env:Windir\system32\cmd.exe&amp;quot;
		               Parameters=@(&amp;quot;/C icacls $env:systemdrive\OWB11gR2 /grant *S-1-5-11:(OI)(CI)F /T /Q&amp;quot;)
                    }                   
               )  

                    foreach ($exe in $Hash_Securites)  {
                        
                            If ($exe.exe.trim() -ne &amp;quot;&amp;quot;) {
                                Execute-Process -Path &amp;quot;$($exe.exe)&amp;quot; -Parameters $exe.parameters[0] -WindowStyle Minimized
                                
                            }
                    }

</code>

Fran├žois

Have you tried adding the paramter CreateNoWindow (-CreateNoWindow:$true) to the Execute-Process command?