What is the best practice for executing a Powershell script as an administrator within a PHP script on a Windows Server?

When executing a Powershell script as an administrator within a PHP script on a Windows Server, it is best practice to use the `runas` command to run the Powershell script with elevated privileges. This ensures that the script has the necessary permissions to perform administrative tasks.

<?php
$scriptPath = "C:\\path\\to\\your\\powershell_script.ps1";
$command = "powershell -command \"Start-Process powershell -ArgumentList '-ExecutionPolicy Bypass -File $scriptPath' -Verb RunAs\"";
exec($command);
?>