Move library existing Itunes library to Apple Music
After a lot of trial and error and messing about with Apple script the solution turned out to be deceptively simple: Select all songs in your library and in the context menu and choose the option remove download.