UPDATE While I was able to use the method described in accepted answer once it failed a second time or was just giving too much trouble.
Searching further I found SetACL by Helge Klein which is far far superior and does exactly what is needed.
I cannot access certain folders e.g.
c:\Program Files\WindowsApps. Via command line I get an error of "Access is denied" and via Windows Explorer I get a pop up a dialog box stating "You don't currently have permission to access this folder"
Clicking on Continue gives me access, but I would like to grant myself access using the command line; so that my scripts do not run into this problem running under the same security context.
I found this question on Microsoft Technet but I couldn't get it to work. Note that I am already running Powershell as administrator.
PS C:\WINDOWS\system32> icacls "C:\Program Files\WindowsApps" /grant i063510:F /inheritance:e C:\Program Files\WindowsApps: Access is denied. Successfully processed 0 files; Failed processing 1 files PS C:\WINDOWS\system32> icacls "C:\Program Files" /grant i063510:F /inheritance:e C:\Program Files: Access is denied. Successfully processed 0 files; Failed processing 1 files
If it matters, I am using Windows 10 upgraded from Windows 8.1.