I'm starting the PsExec using Powershell:
Start-Process -FilePath "psexec.exe" -ArgumentList "-u user -p pass -accepteula -i -h cmd /c `"powershell.exe -NonInteractive -File myscript.ps1`""
But the PsExec CMD is visible until the powershell script
myscript.ps1 is finished.
So how can I hide PsExec CMD ?