php execute powershell script with parameters code example Example: php execute powershell script with parameters param( [string]$CMD ) Invoke-expression $CMD