出现在 "Processes" 而不是 "Applications"

Shows up in "Processes" not "Applications"

我正在使用预定的 powershell 来重新启动某个程序(如果它已关闭)。

我可以检查它是否出现在进程中 (get-process) 并且可以检查它的 cpu 编号,但有时程序出现在进程中但不完整 运行- 它没有不会出现在任务管理器的 "Applications" 中,也不是 window 我可以通过 alt tab 浏览。

应用程序选项卡是否有后端,我可以在其中获取该列表?

程序是filemaker。

检查进程是否有:

$filemaker = Get-Process filemaker
if($filemaker.MainWindowHandle -eq 0){
    # Not fully running
}