Powershell Convert Output To Code