The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
1. Check execution policy to be not restricted
2. Check admin rights
Add-SPShellAdmin -username "domain\username"
3. Run Powershell as administrator
4. Check permission in SQL content database
We were not able to run powershell scripts from our account. When we run script using another account, it worked.
PS>start-process powershell -loadprofile -credential(get-credential)