The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

What do you do if you are running powershell on your SharePoint farm and get the "The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered." error. You have someone who has the rights to run powershell add your user as SP Shell Admin.

Add-SPShellAdmin -username DOMAIN\YourUser

That's quite the nobrainer, but what happens if your user is already SPShellAdmin, shown with Get-SPShellAdmin and you get the same error popping up? In that case, something probably happened with the SQL. They restored the farm on another server and did not migrate all the access rights. Just run Add-SPShellAdmin -username DOMAIN\YourUser again and it will set the appropriate permissions.