what’s the between .ps1 and psm1? please answer me as soon as possible?
PS1 files are scripts, PSM1 files are script modules. You load up a module with the Import-Module command, and it has some other advantages over scripts, such as the ability to keep some code internal while exporting other commands, variables and aliases. Scripts, on the other hand, are just executed (or dot-sourced, if your intention is to load the contents of the script into your current session.)