
Powershell is the most mixed up and convoluted mess of commands I've ever seen. When it works, it works well, BUT... The useful commands are deprecated continually and their replacements need a lot of reading and faffing to get working. Then when you are successful in getting that module operational, there's another command you need from a different PS version to get something else to work. Installing the later version borks your scripts that have been running smoothly because you have to log into the cloud now instead of on-prem.
Every time I install a new module I get the warning:
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository,
change its InstallationPolicy value by running the Set-PSRepository cmdlet.
Are you sure you want to install the modules from 'PSGallery'?
So the thing MS is forcing down my throat to run our domain and production servers is not official and actually 'untrusted' by Microsoft? FFS...
The documentation is all over the place and full of out-of-date info. Consistency and Powershell are at opposite ends of the spectrum.
I've got Linux cron scripts that have been running unmodified for ten+ years. Night and frikking day.