如何使用默认浏览器打开两个html文件

Swe*_*ell 8 powershell-3.0

我有一个生成两个报告和许多html文件的脚本,我想用默认浏览器只打开两个html文件.

我的Powershell脚本完成如下:

Invoke-Item C:\Reports\XUReport.htm
Invoke-Item C:\Reports\index.htm
Run Code Online (Sandbox Code Playgroud)

我的脚本只打开第一个文件.最好的方法是什么?

CB.*_*CB. 10

从一个呼叫添加一点暂停,另一个呼叫:

Invoke-Item C:\Reports\XUReport.htm
start-sleep 1
Invoke-Item C:\Reports\index.htm
Run Code Online (Sandbox Code Playgroud)