Receiving error trying to use trying to use a dynamic folder script with powershell

I encounter the same issue in our environment.

Can you pls explain your post a bit, especially how the script can be signed?:

The latest version of Royal TS now supports setting environment variables instead of using replacement tokens. Check this thread:

With environment variables you could sign your scripts you place in the dynamic folder/credential scripts.