Hi @Raju25 ,
Please find the attached solution.

VB Script:
Const xlUp = -4162
Const xlToLeft = -4159
Dim objExcel, objWorkbook, objSheet
Dim lastRow, rowData(), i
' Create Excel objects
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objWorkbook = objExcel.Workbooks.Open("C:\Users\Pictures\Rows.xlsx") ' Update the path to your Excel file
Set objSheet = objWorkbook.Sheets(1)
Set objSheet2 = objWorkbook.Sheets(2)
' Find the last used row in column A
lastRow = objSheet.Cells(objSheet.Rows.Count, 1).End(xlUp).Row
' Resize the array based on the number of rows
ReDim rowData(lastRow)
' Read data from Excel sheet (assuming data is in column A)
For i = 1 To lastRow
rowData(i) = objSheet.Cells(i, 1).Value
Next
' Write data to Excel sheet in a single row
For i = 1 To lastRow
objSheet2.Cells(1, i).Value = rowData(i)
Next
' Clean up
objWorkbook.Save
objWorkbook.Close
objExcel.Quit
Set objSheet = Nothing
Set objWorkbook = Nothing
Set objExcel = Nothing
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy