Open Object Explorer.Navigate to the node for the object to be worked on.Right-click the object and select Start PowerShell.
Can you use PowerShell in SQL Server?
SQL PowerShell cmdlets can be used to manage instances of Azure SQL Database, Azure Synapse Analytics, and all supported SQL Server products.
How do I run a PowerShell script from SQL Server Agent?
In essence there are two methods for running PS scripts as an SQL Agent task. Click Steps, then New, for the New Job Step. Name the step, choose Powershell, then Run as (choose an account that has proper permissions, then Command Open… chose the Powershell script, then OK.