...
https://docs.microsoft.com/en-us/answers/questions/425673/running-a-cmd-within-powershell.html
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd Windows Command Interpreter (cmd.exe a.k.a. Command Prompt)
Related Pages
/wiki/spaces/DS/pages/521732097
Run the .ps1 script in the example above from Windows Task Scheduler or SQL Server Agent.Deleting Old Files After <n> Days Clean up old log files more than <n> days old.