Thanks. I managed to solved it.
#$_.Id is the folder ID you want to upload; xyz is your organisation
$ShareFileHomeFolder = "https://xyz.sf-api.com/sf/v3/Items("+$_.Id+")"
##Create a PowerShell provider for ShareFile at the location specified
New-PSDrive -Name sfDrive -PSProvider ShareFile -Client $sfClient -Root "" -RootUri $ShareFileHomeFolder
Copy-SfItem -Path $File.FullName -Destination "sfDrive:"
Remove-PSDrive sfdrive
Thanks.
Regards,
Micheale
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…