PowerShell Copy a folder to a SharePoint site by using current web session without prompt

I searched multiple articles about how to copy/upload a folder to a SharePoint site. I couldn’t find a way to use the current web session to copy a folder to a SharePoint site, which means I need this to work without popups at the user’s end. As long as there is an ongoing SharePoint session on the web, it makes more sense to me to allow users to copy files to the site without a prompt for authentication, similar to you drag a folder into your browser.

So far I can use VBA in Excel to copy/save a file to the SharePoint site without a prompt but I don’t know if it’s possible in PowerShell.
Thanks for your help.