Null Pointer in Method Invocation while running a rule to download data from MS Exchange

I am running a rule for following steps and getting Null Pointer in Method Invocation

  1. Retrieving data with PowerShell
  2. Transforming this data into a proper structure for easy iteration and saving to Custom
  3. Saving the data to the custom object.

Created the rule but it is not downloading csv, any suggestion would be appreciated

How are you trying to download csv in the rule. Are you able to retrieve data with PowerShell and see it in your rule or you do not see anything retrieved.

As long as your PowerShell script returns the data it would be fairly easy to save it to a custom object from rule.