Change ExecutionPolicy only in Restricted mode
Merge pull request #2440 from ogail/v5

Change ExecutionPolicy only in Restricted mode