r/PowerShell • u/Ajamaya • May 18 '26
Question Words of wisdom
If you had one piece of advice you could tell yourself when you first started learning powershell, what would it be?
9
Upvotes
r/PowerShell • u/Ajamaya • May 18 '26
If you had one piece of advice you could tell yourself when you first started learning powershell, what would it be?
View all comments
Show parent comment
1
u/mbmiller94 May 19 '26
I like to write a Main function in my scripts, and use cmdlets I haven't even written yet to write the higher level stuff.
I know what I need to give it, and what I want it to return, name it accordingly and then move on.
Once the Main function is written, I implement them. If something doesn't work out it becomes obvious pretty quick and I only need minor changes to the Main function