有没有办法绕过 Power-Shell confirmation(Y/N) 提示?

Is there a way to bypass the Power-Shell confirmation(Y/N) prompt?

有没有办法绕过 PowerShell cmdlet 的确认提示 (Yes/No),该提示未包含在模块的功能中。

如有任何建议或建议,我们将不胜感激。

使用 ECHO Y | powershell 在本地运行良好