I have a vbscript file consist of 5 functions I will explain below:
first function will run all 4 functions if the condition is true the main function will exit and [login to view URL] a "denied" value, and if the condition is false it will [login to view URL] a "success" value
after that a ps1 file will capture the echo value.
I already have all files and everything is coded my issue is the [login to view URL] not working with vbscript besides that I want from you after fixing echo issue to test it with the ps1 file I will provide both files in attachments
N.B: .ps1 is vaild 100% I forked it from microsoft msdn, and the vbscript is a valid part from another vbscript file.
Regarding where the [login to view URL] "denied" & [login to view URL] "success" should be appended in the main function which is called IsRunningSandbox as I Said
[login to view URL] "denied" only if condition is True
[login to view URL] "success" only if condition is false
and to capture the values of vbscript file using ps1 this is the proper command
.\[login to view URL] | Invoke-VBScript -Argument 'Arg 1', 'Arg 2' -Wait
I attached [login to view URL] this is a sample vbscript that work well with [login to view URL]
In case you want to test vbscript I attached after the modifications