Ans:-
PowerShell is an automation scripting language from Microsoft
PowerShell is an automation scripting language. Therefore, most of the tasks that require many 'clicks' or are repetitive should be automated. PowerShell is used primarily for bulk actions, or complex automation tasks mixed with other files format like .csv, .json, or .XML, and will reduce most time consuming efforts in the long run.
If you need to create only one site collection, using PowerShell wouldn't really be beneficial.
you can change/remove them all at once on multiple sites, extract information like Users/Groups/Permissions, and even integrate with other platforms like Azure to automate your most complex tasks!
More examples where PowerShell is used:
- Site Scripts & Site Designs
- WPF Applications (Graphical User Interfaces)
- Reports on Site Collection Inventory