Quick blog post about detecting if PowerShell PNP is available on the local PC and installing is missing (for new systems) to make PS1 script more portable across servers. (1) Detect command (2) Install module if missing (3) Import module. Cheers.
https://www.spjeff.com/2020/02/12/vid...