Can i change the relevance code to get the failed line only in action script of it syntax
((detailed status of it ,exit code of it as string) of results of it,action scripts of it) of bes actions whose (id of it equals 4391)
Completed action parameter query "ad_group" with description "Please enter the AD group name" with default value ""
Completed action parameter query "ad_ou" with description "Please enter the AD OU name" with default value ""
Completed // Enter your action script here
Completed // Disable wow64 redirection on x64 OSes
Completed action uses wow64 redirection {not x64 of operating system}
Completed // CREATEFILE
Completed createfile until END_OF_FILE
Completed
Completed # REPLACE THE FOLLOWING WITH THE SCRIPT YOU WANT TO RUN ON THE ENDPOINT
Completed
Completed NEW-ADGroup –name {parameter "ad_group"} –groupscope Global –path "OU={parameter "ad_ou"},DC=IAUTOMATE,DC=local"
Completed $? > C:\temp\output.txt
Completed $Error > c:\temp\error.txt
Completed
Completed END_OF_FILE
Completed delete powershell.ps1
Completed move __createfile powershell.ps1
Completed waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File powershell.ps1
Completed parameter "file_output"="{lines of file "C:\temp\output.txt"}"
Completed parameter "file_error"="{lines of file "c:\temp\error.txt"}"
Completed if {parameter "file_output" contains "False"}
Completed if {parameter "file_error" contains "object not found"}
Failed exit 100
else
continue if {parameter “file_error” contains “group already exists”}
endif
endif