powershell 参数 [String]Service

此种情况,去掉前面的[String] 在里面操作的时候就会认为是string,并可以自动操作了,否则限定为String类型时,就无法将输入的a,b当作String了,

或者需要添加'a,b'单引号来变为string

原文地址:https://www.cnblogs.com/hualiu0/p/5383410.html