Can I use Agent Builder to fetch data from a Powershell script?

I’m trying to create a custom agent with Script data source and would like to use a powershell (.ps1) script to fetch data.
I tried to provide the script name as command to run but it always returns no data and log says it is not a valid Win32 object.
It seems I can only run .bat scripts on Windows, Is there a way to run powershell scripts instead?


Leave a Reply