uru error in Windows 10
This article introduces how to solve the error when using uru in Windows 10.

Background: multiple ruby versions in windows 10
I am using RubyMines and git bash in Windows 10. I have several projects with different ruby versions. So I want to use uru to switch between two different ruby versions. However, I encountered an error: "uru.ps1 cannot be loaded because running scripts is disabled on this system.”
Interestingly, when I used Command Prompt, it worked fine. The error only appeared when I used the terminal in RubyMines and git bash.

Solution
Run the following command to update the execution policy.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Then we can use uru in our RubyMines.