When you run SharePoint PowerShell on your SharePoint 2010/2013 server you might get the following error:
Error: "The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered".
To fix that you how two solutions:
Login to the Sharepoint Server OS with an user who has Shell Access. Run the "SharePoint 2010 Management Shell" / "SharePoint 2013 Management Shell" as an administrator and grant shell access to the other user via:
Login to you SQL Server which hosts the Sharepoint DBs. Select the user who need shell access. Choose properties and switch to the user mappings. Now add the shell access role for the config DB to the user as seen below: