Fix powershell scripts