powershell创建计划任务
function Get-ScriptDirectory{ Split-Path -Parent $PSCommandPath}function Check-IsElevated{ $id = [System.Security.Principal.WindowsIdentity]::GetCurrent() $p = New-Object System.Security.Principal.WindowsPrincipal($id) if ($p.IsInRole([System.Secu