Hello!
I prefer to answer here so that everyone can see the answers
Try to open the powershell console and use the "Set-ExecutionPolicy" cmdlet inside of the console instead of inside the script file, like this:
Set-ExecutionPolicy 'Unrestricted'
You can't change the execution policy inside of a script, you need to do it from the console or by the help of a GPO.
Best Regards Alexander