In the PowerShell Gallery there are available several modules to manage Dynamics 365, CDS and PowerApps enviroments.
More documentation can be found in this link:
https://docs.microsoft.com/en-us/powerapps/administrator/powerapps-powershell
See below a quick reference to the actual PowerShell modules.
Microsoft.Xrm.OnlineManagementAPI
PowerShell Module for access to Dynamics 365 CRM online management API. Provides access to the Tenant management features for CRM Instance Management
https://www.powershellgallery.com/packages/Microsoft.Xrm.OnlineManagementAPI
Microsoft.PowerApps.PowerShell
PowerShell interface for Microsoft PowerApps and Flow
https://www.powershellgallery.com/packages/Microsoft.PowerApps.PowerShell/
Microsoft.PowerApps.Administration.PowerShell
PowerShell interface for Microsoft PowerApps and Flow Administrative features
https://www.powershellgallery.com/packages/Microsoft.PowerApps.Administration.PowerShell