To make your script more understandable and provide a professional help of your script, you can add help to your script.

Add the following lines to the top of your script or add these lines to a function for extra explanation of the function.

Run your script once and then type the following command :

get-help <scriptname>