I'm trying to setup Quick Access links in Windows Explorer (Windows 10), but I'm getting an error "You cannot call a method on a null-valued expression. At C:\scripts\new1.ps1:3 char:1
$folder2 = '\\disabilityrightstexas-
my.sharepoint.com@SSL\DavWWWRoot\personal\' + $env:username +
'_disabilityrightstx_org\Documents'
$QuickAccess = New-Object -ComObject shell.application
$QuickAccess.Namespace($folder2).Self.InvokeVerb("pintohome")