PowerShell Practitioner: Understanding The Core Building Blocks of Programming & Scripting through PowerShell, Plus Debunking Popular Misconceptions
()
About this ebook
CHAPTER 1
INTRODUCTION TO PROGRAMMING AND SCRIPTING
CHAPTER 2
FOUNDATIONS OF PROGRAMMING: CONCEPTS, TERMS, AND ESSENTIALS
CHAPTER 3
GETTING STARTED WITH POWERSHELL
CHAPTER 5
A CLOSER LOOK
CHAPTER 6
POWERSHELL INTEGRATED SCRIPTING ENVIRONMENT (ISE)
CHAPTER 6
FILTERING AND SORTING DATA
CHAPTER 7
PROFILES AND PROVIDERS
CHAPTER 8
DEBUGGING AND ERROR HANDLING
CHAPTER 9
EXPLORING ADVANCED CONCEPTS AND TECHNIQUES IN POWERSHELL
CHAPTER 10
BEST PRACTICES
CHAPTER 11
STUDY SMARTER: BEYOND HOUR COUNTING AND MISCONCEPTIONS
Related to PowerShell Practitioner
Related ebooks
Programming And Coding in Intermidiate Level Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Study Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 4 out of 5 stars4/5Navigating the Realm of Computer Science: A Journey Through Bits and Bytes Rating: 0 out of 5 stars0 ratingsLearn to Code With JavaScript Rating: 0 out of 5 stars0 ratingsA Guide To All Programming and Coding Languages Rating: 0 out of 5 stars0 ratingsProgramming And Coding begginers level Rating: 0 out of 5 stars0 ratingsProgramming Abc With Python Or Programming The Easy Way Rating: 0 out of 5 stars0 ratingsComputer Programming Python, Machine Learning, JavaScript Swift, Golang: Rating: 0 out of 5 stars0 ratingsThe Art of Code: Exploring the World of Programming Languages Rating: 0 out of 5 stars0 ratingsLinguistic Studies Rating: 0 out of 5 stars0 ratingsCODING FOR KIDS: Beginners' Complete And Intuitive Guide To Learning To Code (2022 Crash Course for Newbies) Rating: 5 out of 5 stars5/5Learn Python in 10 Minutes Rating: 4 out of 5 stars4/5Introduction to Programming Languages Rating: 4 out of 5 stars4/5Programming Best Practices for New Developers: A Practical Guide with Examples Rating: 0 out of 5 stars0 ratingsSimple Coding Rating: 0 out of 5 stars0 ratingsThe Complete Beginner’s Guide to Coding: Master the Basics with Simple Examples & Hands-On Projects Rating: 0 out of 5 stars0 ratingsCode Foundations Rating: 0 out of 5 stars0 ratingsSoftware Development Techniques Rating: 0 out of 5 stars0 ratingsSoftware Languages Rating: 0 out of 5 stars0 ratingsProgramming for Everyone Rating: 3 out of 5 stars3/5JavaScript Coding for Teens: A Beginner's Guide to Developing Websites and Games Rating: 0 out of 5 stars0 ratingsPython Crash Course for Beginners Rating: 0 out of 5 stars0 ratingsThe 1 Page Python Book Rating: 2 out of 5 stars2/5Basic Guide to Programming Languages Python, JavaScript, and Ruby Rating: 0 out of 5 stars0 ratingsBasic Core Python Programming: A Complete Reference Book to Master Python with Practical Applications (English Edition) Rating: 0 out of 5 stars0 ratings
Programming For You
Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsPython: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsLinux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Hacking Electronics: Learning Electronics with Arduino and Raspberry Pi, Second Edition Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5HTML in 30 Pages Rating: 5 out of 5 stars5/5Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5A Slackers Guide to Coding with Python: Ultimate Beginners Guide to Learning Python Quick Rating: 0 out of 5 stars0 ratingsBuilding Business Websites with Squarespace 7 Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5OneNote: The Ultimate Guide on How to Use Microsoft OneNote for Getting Things Done Rating: 1 out of 5 stars1/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5
Reviews for PowerShell Practitioner
0 ratings0 reviews
Book preview
PowerShell Practitioner - Stevens-Sobolewski Justin
PowerShell Practitioner
Understanding the Core Building Blocks of Programming & Scripting through PowerShell, plus Debunking Popular Misconceptions
© 2023 by Justin Stevens-Sobolewski. All rights reserved.
First Edition.
No part of this book may be reproduced or used in any manner without the express written permission of the author, except for brief quotations in reviews.
Author and Designer: Justin Stevens-Sobolewski
Printed in The United States of America
For more information please visit:
MeetStevens.com
I N M E M O R Y O F… I N M E M O R Y O F D e b o r a h A n n S o b o l e w s k i 1 9 5 2 - 2 0 2 0 “MAKE NO MISTAKE, YOUR MORALS, BELIEFS, LESSONS, LOVE, SPIRIT, PASSIONS AND MUCH MORE WILL ALWAYS BOLDLY BE REMEMBERED…” J.S., August 22, 2020Chapter 1
INTRODUCTION TO PROGRAMMING AND SCRIPTING
CHAPTER 2
FOUNDATIONS OF PROGRAMMING: CONCEPTS, TERMS, AND ESSENTIALS
CHAPTER 3
GETTING STARTED WITH POWERSHELL
CHAPTER 5
A CLOSER LOOK
CHAPTER 6
PowerShell Integrated Scripting Environment (ISE)
CHAPTER 6
Filtering and Sorting Data
CHAPTER 7
Profiles and Providers
CHAPTER 8
Debugging and Error Handling
CHAPTER 9
Exploring Advanced Concepts and Techniques in PowerShell
CHAPTER 10
Best Practices
CHAPTER 11
STUDY SMARTER: BEYOND HOUR COUNTING AND MISCONCEPTIONS
Chapter 1: INTRODUCTION TO PROGRAMMING AND SCRIPTING
Introduction to Programming
Welcome to the exciting world of programming! Let's start with a brief overview of programming and how it has evolved over the years.
Programming is the act of creating instructions for a computer to follow. These instructions, also known as code, are written in a specific programming language (of which there are many). For instance, think of it like giving step-by-step instructions on how to make a PB&J sandwich. Just as one would detail the steps for spreading peanut butter on one slice of bread and jelly on another, programmers detail steps for the computer to perform tasks. These instructions are used to tell a computer to perform a wide variety of tasks, from simple calculations to complex software.
The first programming language to be created was called Machine Language, developed in the 1940s. Machine Language was very basic, consisting only of a series of 0s and 1s that could be read and understood by a computer's processor. Since then, many other programming languages have been developed, each with unique features and capabilities. Some of the most popular programming languages today include Python, Java, C++, and JavaScript.
Nowadays, you’ll interact with programming in almost every aspect of daily life, from the apps on your phone to the websites you visit to the cars you drive. Writing code is a field that is constantly evolving and offers endless opportunities for creativity and innovation.
Learning to code will allow you to bring your ideas to life. Additionally, it’s a highly valuable skill to have in today's job market. Companies (and not just tech companies) are looking for talented programmers to help them build and maintain software applications, and the demand for these professionals is only expected to increase in the coming years. But perhaps the best thing about programming is that it's a skill that can be learned by anyone. All it takes is a bit of motivation, some time, and the right resources. So if you're ready to embark on this exciting journey, grab your computer and let's get coding! Oh, and one last thing – remember, the best way to learn programming is to have fun with it! Get creative and don't be afraid to experiment or make mistakes.
Common Programming Languages & Uses
There are many different programming languages to choose from. This chapter delves deeper into some of the most commonly used programming languages, while providing coding samples and detailed insights into their unique features and associated use cases.
Python
Python is a popular, high-level programming language celebrated for its readability and versatility. It is frequently chosen for web development, scientific computing, data analysis, and Artificial Intelligence. One of Python's standout features is its vast and active community of users. This community has contributed numerous libraries and frameworks that simplify the process of building intricate applications. Some renowned Python libraries include Django (a web framework), NumPy (a scientific computing library), and TensorFlow (a machine learning library).
Sample Python Code:

image.pngJava
Java is a widely-used, object-oriented programming language. In the programming context, object-oriented
refers to a design paradigm where data and functions are bundled into units called objects
. Java's strength lies in its portability; Java code can execute on any device with a Java Virtual Machine (JVM) installed. This makes it the go-to choice for Android application and software development, as Android's primary supported language. Additionally, many large corporations depend on Java for their crucial business systems.
Sample Java Code:

image.pngC++
C++ stands out as a high-performance, compiled language. For beginners, a compiled
language means that the written code is transformed into machine code by a compiler before it's executed. C++ is a top pick for crafting extensive software systems like operating systems, web browsers, and games. Its efficiency allows programmers to write code that's close to the hardware level
, meaning it can interact directly with system hardware, offering faster performance. C++ is also favored for high-performance applications, such as financial trading systems and simulations, due to its ability to process vast amounts of data swiftly.
Sample C++ Code:
image.pngJavaScript
JavaScript is a dynamic programming language essential for crafting interactive web applications. It can alter a web page's content, layout, and behavior, and is commonly paired with HTML and CSS to produce visually captivating and adaptable websites. Beyond web development, JavaScript finds its use in mobile and desktop application development, courtesy of frameworks like Electron and Cordova. Additionally, server-side development often employs JavaScript, especially with libraries like Node.js.
Sample JavaScript Code:
image.pngThere are many more languages than these four we’ve briefly overviewed, but this should give you a sense of the wide range and flexibility across different languages. You should eventually gain familiarity with all of the major languages to be able to work across all stacks of development.
Introduction to Scripting
Scripting is the act of writing small scripts, or programs, that can automate tasks. Scripting can help you automate tasks and streamline your workflows. These scripts can be written in a variety of languages, such as Python, Bash, or PowerShell, and are used to perform a wide range of tasks, from simple file management to