okay there defo needs to be a instruction on how to run these scripts in powershell. It has taken me ages to learn but it could have been so simple if there were simple instructions. What a waste of time that was. For anyone with the same issues this worked for me:
By default you can’t execute other scripts in powershell so even if you do work out how to navigate to the right file you will get the errors like I discribe in the earlier posts of this thread. I find the whole powershell controll UNECESSARILY hard! It coul be so simple and come with basic freaking instructions for navigation!!! Anyway, dont bother trying to change the security settings using code because it’s so g-■■■■ jankey that following instructions letter for letter doesnt work with different versions of the Powershell app.
Instead, use this to change the default security:
You can also configure PowerShell Execution Policy in Windows via GPO. To do this, run the Local Group Policy Editor (gpedit.msc) and enable the Turn on Script Execution policy in the section Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell.
Once you change the security settings to ‘remote sign’ you will be able to right click the .ps1 files and you have the option to run the script in powershell however, even though you right click and run the script it will not work, because right clicking and running scripts is not in Powershell Admin mode. I think you need to set it to ‘allow all scripts’ for that right click and run scripts function to work