我不知道如何使用列表从系统中记录多个指标。$CounterListvar不起作用,但$CounterList_Workingvar起作用。我看过一些示例,这些示例根据(Get-Counter-ListProcessor(*)).Paths等路径获取列表。我以为我可以在变量中指定路径,但这行不通。PowerShell脚本中的$CounterList有什么问题?我收到的错误消息是“Get-Counter:在计算机上找不到指定的对象。”。这让我觉得它正在尝试将列表作为单个值来读取。$CounterList="\NetworkInterface(*)\Packets/sec\NetworkIn