Convert Shell Script To Powershell Update