Invoke powershell error


I am trying to use the invoke powershell activity but i get an error:

Can you help?

Hi @dcrt,
Here you need to declare variables for powershell otherwise powerhsell will don’t know what is $TimeZone in your case:

1 Like

Thank you but i have already done that

I had to remove the ’ ’ around task no. It works without them :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.