Color coded directory listing with PowerShell

Breaking down the script

The first part of the code deals with creating an advanced function and handling the parameter of the script. Within the parameter attribute I specify that the parameter is required by setting mandatory to true, adding a help message and validates that the parameter only accepts string values.

First part of the script.
The process part of the script.
The complete script.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fredrik Engseth

Fredrik Engseth

Consultant | Developer | Dynamics 365 | Power Platform | Azure