You can use the cmdlet command in the Microsoft PowerShell environment. Windows PowerShell uses this cmdlet to automate command-line scripts.