Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
You will most often use Bash functions to make your shell life easier; instead of typing out complex command pipelines, ...
Take advantage of Azure Functions to run small pieces of code that can be triggered by events in the Azure cloud. Azure Functions is the serverless compute offering in the Microsoft Azure cloud.