I am not able to run a powershell script or even a command through Invoke PowershellScript pallet, I have been trying for a while now can someone help me . Below are the error that i receive when i just tried “Get-service” and “Get-childitem” and “hostname”.
Error
1.) Get-service
“unable to cast object of type ‘system.serviceprocess.servicecontroller’ to type ‘system.management.automation.psobject’ uipath”
2.) get-childitem
" object reference not set to an instance of an object uipath powershell"
3.) hostname
unable to cast object of type ‘system.string’ to type ‘system.management.automation.psobject’ uipath
Sorry for the late reply but if i have a bigger with lot of functions and lot many data as output, then how do i categorize and figure out datatype of each? Because now i am facing with a simple powershell itself.