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

here is my activity
and here is my script (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.