I'm trying to get Powershell's output back to ColdFusion with different attributes like errorVariable, Variable, errorFile, outputFile but with no success.
Coldfusion code -
<cfset hello = "hello">
<cfexecute name="C:\windows\system32\cmd.exe"
arguments="/c start c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe C:\Users\raimonds\Desktop\lala.ps1 '#hello#'"
variable="test">
<cfdump var="#test#">
And the powershell code -
param([string]$hello)
Write-Host $hello
Thank you