Major updates to powershell scripts