I am using the exec()
function in PHP to run a command via command prompt. However the time which is needed to process this command using PHP is much longer compared to when I actually run the command on the CLI.
Any idea how I can improve its performance or make more efficient calls? I am trying to run powershell scripts.