How to batch obatin band information of landsatSR on Google Earth Engine

Hi everyone, I wonder how to obtain the band information of points(lon,lat). There are codes.

var pts = ee.FeatureCollection(table)
var L8 = ee.ImageCollection(‘LANDSAT/LT05/C01/T1_SR’)
//var L8 = ee.ImageCollection(‘LANDSAT/LC08/C01/T1_SR’)
.filterDate(‘1986-1-1’, ‘2013-6-1’)
//.filterDate(‘2013-3-1’, ‘2022-12-31’)
var ft = ee.FeatureCollection(ee.List([]))
var fill = function(img, ini) {
// type cast
var inift = ee.FeatureCollection(ini)
// gets the values for the points in the current img
var ft2 = img.reduceRegions(pts, ee.Reducer.first(),30)
// gets the date of the img
var date =
// writes the date in each feature
var ft3 ={return f.set(“date”, date)})
// merges the FeatureCollections
return inift.merge(ft3)
// Iterates over the ImageCollection
var newft = ee.FeatureCollection(L8.iterate(fill, ft))
// Reduce the size of the collection by sampling
var sampledft = newft.randomColumn().filter(‘random’,0.1))
collection: newft,
description: ‘New_Feature’,
fileFormat: ‘CSV’

table is a .csv: ID lon lat

How to modify it? Thanks a lot!