File C:\Users\Tim\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this system code example
Example: File C:\Users\skill\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
//open windows command shell as administrator and run command
Set-ExecutionPolicy Unrestricted