sharepoint online – PnP PowerShell commands for set theme, remove sections of page and uninstall app not working

In the newest version of pnp powershell (1.7.0), I am trying these commands

Changing theme to one of the out of the box ones

Set-PnPWebTheme -Theme "Teal"

But if I use a name of a custom theme I’ve deployed, it works

Remove sections of the page

$pg = Get-PnPPage -Identity "Home"
$sectionsCount = $pg.Sections.Count
for($i=$sectionsCount-1; $i -ge 0; $i--) {
    write-host $i
    $pg.Sections.RemoveAt($i)
}
$page = Set-PnPPage -Identity $pg -Publish

Remove an add-in (spfx extension) from a site (not app catalogue)

Uninstall-PnPApp -Identity 150520F1-9488-423C-8006-AC541078B029

But they all do not work. The first one gives a unknown error. The other two does nothing. Does anyone know what’s wrong?