A solution using Windows Powershell is discussed here
One way of getting this done would be to use a clipboard app like ditto.