以前在cmd中执行powershell,我们都是这样:
PowerShell.exe -file a.ps1
a.ps1
也可以使用下面的cmd以管理员权限打开,然后运行命令:
ftype Microsoft.Powershellscript.1="%SystemRoot%\system32\windowspowershell\v1.0\powershell.exe" "%1"
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分 风车动漫