I tested the datasource code from within WFA, and it worked just fine. So it seems to be how WFA executes powershell on the backend.
Assuming the correctness of this test, I can tell you how to do the remaining.
By default, WFA server executes Powershell as 'Local System' service account. If you want to run as Administrator or another system Account (Local or Domain)
Do the below:
1. Launch services.msc
2. Find the service 'NetApp WFA Server' and right-click and select 'Properties'.
3. On Tab 'Log On' Select Radio Buttion from 'Local System Account' to 'this Account'
4. Now provide the credentials of the Administrator or any user. Save
5. Restart WFA Server service for the changes to take effect. Make sure the service has started. If not there could be reasons which need to be debugged further.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.