0%

Learn the basic tools and commands to write scripts in PowerShell 7. This hands-on guide is designed to get you up and running on PowerShell quickly - introducing interactive menus, reading and writing files, and creating code that talks over the network to other scripts, with mini games to facilitate learning. 

PowerShell for Beginners starts with an introduction to PowerShell and its components. It further discusses the various tools and commands required for writing scripts in PowerShell 7, with learning reinforced by writing mini games. You will learn how to use variables and conditional statements for writing scripts followed by loops and arrays. You will then work with functions and classes in PowerShell. Moving forward, you will go through the PowerShell Console, customizing the title and text colors. Along the way you will see how to read a key press and make sound in PowerShell. The final sections cover game engine layout, how to build a title screen, and implementing the game design using code flow, title screens, levels, and much more.

After reading the book you will be able to begin working with PowerShell 7 scripts and understand how to use its tools and commands effectively.

What You Will Learn

  • Use Microsoft Visual Studio Code to develop scripts
  • Understand variables, loops and conditional statements in PowerShell
  • Work with scripts to develop a game
  • Discover and use ASCII art generators
  • Comprehend game objects and code
  • Create client-server scripts that communicate over a network

  • Read and write to files

  • Capture input from the keyboard

  • Make PowerShell speak words to help the visually impaired

  • Create text-based adventure games

Who This Book Is For
Software developers who want to start working with PowerShell scripts.

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Introduction
  4. 2. Beginners’ Guide to PowerShell and Visual Studio Code
  5. 3. Variables
  6. 4. Conditional Statements
  7. 5. Loops
  8. 6. Arrays
  9. 7. Functions
  10. 8. Classes
  11. 9. Customizing the Console
  12. 10. User Input
  13. 11. Dragon Slayer
  14. 12. Getting Colorful
  15. 13. ASCII Table
  16. 14. Cursor Control
  17. 15. Background Processing
  18. 16. Networking
  19. 17. Working with Files
  20. 18. Sound
  21. 19. Game Engine
  22. 20. Creating Game Artwork
  23. 21. PowerBomber
  24. Back Matter
3.144.102.239