It is a good practice to check for an existing command that may have the name or a similar name to a script you are saving. To do this, use Get-Help and Get-Command to search for matches.
In this instance, i searched new-vm because i am writing a script to create a new VM for my lab. Since I have Hyper-V installed, I already have a Cmdlet named New-VM.
At this point you need to ask yourself is the existing Cmdlet good enough to do what I want or what sets my script apart. The answers here will help you name your script. In my case the main difference is it being for my lab. Therefore, I will name my script New-LabVM and avoid conflicts.
At this point you need to ask yourself is the existing Cmdlet good enough to do what I want or what sets my script apart. The answers here will help you name your script. In my case the main difference is it being for my lab. Therefore, I will name my script New-LabVM and avoid conflicts.
RSS Feed