I found this command, to run a cmd script:
Execute-Process -Path "C:\Windows\System32\cmd.exe" -Parameters "$dirfiles\install.cmd" -Wait
I tried it, and it gets stuck somewhere, the file is not executed, the file just does:
type nul > C:\Install\123.txt
I got the message, that the installation is running, “please wiat…” but then nothing happens.