Updated embedded powershell script.