Print all files in folder in one time

hi everyone,
im new in this world and i want to create a script
i have specific folder with many pdf
i want to print all the pdfs in this folder in one time
for example the name of the folder is test.
i trying many codes and nothing happened
thank you for your help!

Can you give some examples of your code so far?

yea sure

Set the folder path containing the PDF files

$folderPath = “C:\Users\User\Desktop\New folder”
$printerName = “\Printer-Server\Main” # Your printer name

Get all PDF files in the specified folder

$pdfFiles = Get-ChildItem -Path $folderPath -Filter *.pdf

Loop through each PDF file and print it

foreach ($pdfFile in $pdfFiles) {
# Print the PDF using Adobe Reader
Start-Process -FilePath “C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe” -ArgumentList "/t"$($pdfFile.FullName)" "$printerName""
-NoNewWindow -Wait
}

Notify when printing is complete

Write-Host “Printing complete for all PDF files in $folderPath.”