Hi,
Thank you for posting your query.
Kindly check the details below.
With Windows PowerShell you can easily run deployment commands to change the configuration of your deployment, like tasks that can be performed from the Deployment Manager user interface. You can also use the methods described in the Dynamics 365 Customer Engagement Web Services to perform these tasks. The PowerShell cmdlets are installed on the computer when you install a Full Server role or when you install the Deployment Tools server role, if you’re installing individual server roles. To execute commands, you must first register the Dynamics 365 for Customer Engagement commands with PowerShell. This topic describes how to do these plus additional tasks to help you use PowerShell.
Go to this link for your reference https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/deploy/administer-the-deployment-using-windows-powershell?view=op-9-1
Do not hesitate to message us if you need further assistance.
------------------------------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and upvote it. Thanks.