Aggregate in other bucket but change the measurement name

Hello,
I want to aggregate a bucket in a other but change also the measurement name to “energie-stats”.
If I made it like this:

from(bucket: "energie")
  |> range(start: 2022-10-26T00:00:00.000Z, stop: 2023-05-14T16:45:00.000Z)
  |> filter(fn: (r) => r._measurement == "Stromzaehler_Einspeisung")
|> filter(fn: (r) => r._field == "value")
 |> difference() 
  |> map(fn: (r) => ({r with _value: r._value * 10.0 * 0.082}))
  |> aggregateWindow(every: 15m, fn: sum, createEmpty: false)
  |> to(
    bucket: "test",
    fieldFn: (r) => ({ "exportedEuro": r._value })

It would aggregate fine but the measurement name in the bucket “test” is always “Stromzaehler_Einspeisung”, I want to change this name in “energie-stats” but don’t know how.

Have someone a hint?