Thanks, that worked. The map marker and the previous beacon was way off.
In the meanwhile I tried my own thing and managed to spawn the beacon and the wreckages in a different sector by running the mission script manually, but went back to confirm that the script you wrote worked too and pointed me to the right position.