Windows 从一个powershell计划程序调用多个网页

Windows 从一个powershell计划程序调用多个网页,windows,powershell,scheduler,Windows,Powershell,Scheduler,目标-- 我需要在单个powershell windows计划程序中调用多个网页 当前实施-- 在“添加参数”部分: -ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString(\"https://example1\")" 需要输出-- 我必须在这里调用两个以上的网页。我该怎么做? 目的是-我有多个网页要调用,我不想为每个网页创建单独的计划程序。最后

目标--
我需要在单个powershell windows计划程序中调用多个网页

当前实施--

在“添加参数”部分:

-ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString(\"https://example1\")"
需要输出--
我必须在这里调用两个以上的网页。我该怎么做?

目的是-我有多个网页要调用,我不想为每个网页创建单独的计划程序。

最后,脚本编写成功了!没有别的了。
powershell -ExecutionPolicy unrestricted -Command "@('https://adventofcode.com/2020/day/1','https://adventofcode.com/2020/day/2') | ForEach-Object {(Invoke-WebRequest `$_).Content}"
我一直在避免编写脚本,只是想只使用调度程序

但不管怎样,这些链接帮助了我-


制作一个脚本,并调用该脚本,使计划任务出错。Invoke WebRequest:无效URI:无法分析主机名。第1行字符数:99+。。。ode.com/2020/day/2')| ForEach对象{(调用WebRequest`$\).Conten…+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+CategoryInfo:NotSpecified:(:)[调用WebRequest],UriFormatException+FullyQualifiedErrorId:System.UriFormatException,Microsoft.PowerShell.Commands.InvokeWebRequestsCommands C:\Users\alHaos>$PSVersionTable名称值-----PSVersion 5.1.19041.610 PSEdition桌面PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}BuildVersion 10.0.19041.610 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1$PSVersionTable Name值-----PSVersion 5.1.18362.1171 PSEdition桌面PSCompatibleVersions{1.0、2.0、3.0、4.0…}BuildVersion 10.0.18362.1171 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1不知道…它适用于meI已检查。它正在与powershell一起工作。但它不适用于windows计划程序。我已厌倦了将路径更改为op调度程序中的powershell应用程序,仍然给我错误。对此有什么想法吗?