参考:https://www.coder.work/article/6671779

1
2
3
4
tasklist | findstr cmd
Start-Process cmd.exe -WindowStyle Hidden

Stop-Process -Id 11172; Stop-Process -Id 11172; Start-Process cmd.exe -WindowStyle Hidden

; :同一行写多句
| :管道,前一个的输出到后一个的输入