The TechNet Script gallery was closed a few months ago but some were migrated here.
https://github.com/MicrosoftArchive
https://learn.microsoft.com/en-us/samples/browse/
--please don't forget to Accept as answer if the reply is helpful--