get-executionpolicy

if it says restricted, enter the following:

set-executionpolicy remotesigned

if you want to run unsigned scripts

set-executionpolicy unrestriced