I want to create a folder with hashtag(#) in the name in SharePoint Online using PowerShell pnp and following command fails with error message "The argument must be a single folder name and cannot contain path characters". (From SharePoint Online UI, it allows to create folders/files with #).
Add-PnPFolder -Name "Test # Lists" -Folder "ABC/"
The Same error occurs when uploading a file with the name containing a # using Add-PnPFile
I have tried escaping (`#) but it's giving the same error. Also tried encoding # with '%23', but it creates a folder with %23 in the name instead of #.
Any solution or a workaround is much appreciated.