This is because of Execution Policy. This defines how powershell scripts will run. In Default windows desktops, it is Restricted, not allowing any scripts (signed or unsigned) only interactive sessions. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.