我有一个Powershell Commandlet,它根据条件提示用户输入安全字符串。现在,我想自动测试这个命令小程序,为此,我使用Powershell远程运行空间来调用这个命令小程序。Try a host program that supports user interaction, such as the Windows PowerShell Console or WindowsPowerShell ISE, and remove prompt-related commands fr
基本上,问题的根源在于,当我打开桌面Powershell并检查$env:PSModulePath时,我会看到那里的PS.Core模块路径。请注意:Copyright (C) Microsoft Corporation. All rights reserved.\Modulesc:\program files\powershell\6\Modules
C:\Program Files\WindowsPowerSh