Are you sure you are not editing the script? VS will not block the script when you try to edit it, but it will block when you try to run it.
VS will also not block PowerShell when the user simply runs PowerShell without a script.
How are you running the script? Like, are you right clicking on the script and choosing "Run with PowerShell"? If not, let me know how you are trying to run the script.
Also, make sure the script was not previously whitelisted
. VS will not block scripts that were previously allowed.