Powershell 问题 - 我不知道如何转到

Powershell problem - i dont know how to make goto

我有一个代码,我想跳转到,但我不知道如何在 Powershell 中实现它

:yea
taskkill /im wordpad.exe /f
(get-process | ? {$_.Description -eq "Notepad"}).kill()
goto yea

我试图在 google 中阅读如何制作它,但我什么都不懂 xd 也许很简单,但我不知道怎么做

我读了一些

break and continue

请帮助我(:是的,当我想要循环时转到是的)

aa 一个

一个 一个

一个 一个

一个 一种 一个

一个 一种 一种 一个

使用 while() loop:

while($true){
  taskkill /im wordpad.exe /f
  (get-process | ? {$_.Description -eq "Notepad"}).kill()
}