Run powershell script system.aggregateException

hi guys, im trying to run a script from uipath using run powershell script activity.
the script consist of importing file, get hostname, writing output to a file.
but i get this error
image

here is my activity
image
and here is my script
tscriptMain.zip (680 Bytes)

please help

Hi @RobertoEwaldo,
Please check if you have enabled Execution Policy for the scripting on machine/user where you are running the script. Additionally try to open Studio with your workflow as an Administrator.