我是一个能够翻译文本的助手。
以下为需要翻译的内容:
我有一个powershell脚本。为了运行这个脚本,我写了一个批处理文件。
以下是批处理文件的代码:
:: psscript.bat
set psscript='%CD%\Hotfix-Automation-Installer.ps1'
echo Running PowerShell Script: %psscript%
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe ^&%psscript% %*
当我双击批处理文件时,我希望我的脚本Hotfix-Automation-Installer.ps1以管理员身份运行。
我该如何以管理员身份运行此脚本?