Writing the script

Writing a script should be straightforward and to the point. There needs to be a purpose, a breakdown of what inputs are needed, what outputs are needed, and who needs to run it. In most cases, this can be done on the fly as each line is typed, but it still is a methodized approach. This section deals with the mentality of writing a command, how to approach it, and planning the writing of it. As the IT Administration field looks more and more to DevOps frameworks, the more important building a process on how to do it becomes.

Planning the purpose

The basics of planning are to set the final expectations before beginning any typing.

Let's start with the example shown in the introduction of Chapter 1, An Introduction to Essential ...

Get PowerCLI Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.