restaging the powershell script