I have been playing with serialization/deserialization for a while now (the .Net serialization methods included) and it won't work.
The process changes the typename as you probably know.
I would be more than happy if you could provide a working example of such a script.
Read a spec, serialize it, deserialize it on the other side and use the spec to create a new entity.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference