I have a requirement which is with PowerShell script: when we deleting site collection with PowerShell before deleting we should have a backup copy(bak) in a specified location.
Example:
Remove-SPSite before this action we need to execute the backup-spsite action.
Please suggest me how to achieve the target.