Certainly! Here is the script in a proper code block:
``` 
import bpy

# Set the name of the object you want to replace
object_name = "replace_object_name_here"
# Set the name of the point light you want to create
light_name = "replace_light_name_here"

# Create a new point light
bpy.ops.object.light_add(type='POINT')
# Rename the point light
bpy.context.active_object.name = light_name

# Loop through all objects in the scene
for obj in bpy.context.scene.objects:
    # Check if the object has the specified name
    if obj.name.startswith(object_name):
        # Delete the object
        bpy.data.objects.remove(obj, do_unlink=True)
        # Create a new copy of the point light
        new_light = bpy.data.objects[light_name].copy()
        bpy.context.scene.objects.link(new_light)
        # Set the location of the new point light to the location of the deleted object
        new_light.location = obj.location
``` 
In this script, the comments explain each step of the process. Just replace "replace_object_name_here" with the name of the object you want to replace and "replace_light_name_here" with the name you want to give to the new point light.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence