我试图通过cmd运行一个带有多个字符串参数的powershell命令。
上下文是,我想使用Compress-Archive函数/脚本中的Matlab。而Matlab只能访问cmd。但是,当在cmd中调用powershell.exe时,我找不到一种方法来保留字符串参数中的连续空格。C:\Users\Artus>powershell.exe echo 'a
我在Powershell模块中有一个函数,它应该使用SimplySql建立数据库会话。SimplySql接受凭据对象。现在我有几个问题,要将密码发送到函数中。我试过的是:
当使用字符串$参数时,我会得到警告"Parameter '$password' should use SecureString, otherwise this will expose sensitiveI使用"$SecurePassword = "myPassword&