Get value from inside powershell script

Clipboard is a good idea.

Other ideas:

  • Use the ${xrun_exit} variable. So if you close the Powershell VBS script with WScript.Quit 5, then in the macro ${xrun_exit} will have this value! (here: 5).
    Edit: VBS code is WScript.Quit 5, Powershell is simply exit 5

  • Save the data as CSV file and then use csvRead (useful if a lot of data needs to be imported)