Unveiling My First Learn-Build-Repeat Post: Start Here

IT Learn ModeIT Learn Mode
2 min read

Intro

Every journey begins with a single action. In the spirit of Learn → Build → Repeat, this first post is not just an introduction, it’s a hands-on start.

I’m going to create a symbolic PowerShell script and share how to run it across Windows, macOS, and Visual Studio Code.

Part 1 - The Script

What it does:

  • Prints the message "This is the first article of the Learn-Build-Repeat Blog" to the terminal

  • Saves the message to a .txt file in the script’s folder

Below is the symbolic Script:

# Script: FirstBlogEntry.ps1
# Description: Prints and saves the first message of the Learn-Build-Repeat blog

# Learn-Build-Repeat: Start Here
$message = "This is the first article of the Learn-Build-Repeat Blog"

Write-Host $message

$outputPath = "$PSScriptRoot\LearnBuildRepeat_FirstEntry.txt"
$message | Out-File -FilePath $outputPath -Encoding UTF8

Write-Host "Message saved to $outputPath"

Part 2 - Running it on Windows

  1. Open Notepad and paste the script.

  2. Save the file as - FirstBlogEntry.ps1

  3. Open PowerShell and run:

cd "C:\Path\To\Your\Script"
.\FirstBlogEntry.ps1
💡
Execution policy error?

Use the below command to bypass it temporarily:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass


Part 3 - Running It on macOS

  1. Open the Terminal

  2. Save the script in a file named FirstBlogEntry.ps1

  3. Run PowerShell (assuming you’ve installed PowerShell 7 via Homebrew or direct download):

     pwsh
    
    💡
    pwsh is the PowerShell 7 command on macOS/Linux.
  4. Navigate and run:

cd /path/to/script
./FirstBlogEntry.ps1/


Part 4 - Running It in Visual Studio Code

  1. Open VS Code (assuming you’ve installed VS Code)

  2. Install the PowerShell extension (if not already installed - How to Install PowerShell Extension)

  3. Open or create the script file: FirstBlogEntry.ps1

  4. Press F5 or click Run → Run Without Debugging

  5. View the output in the terminal


Closing Thoughts

This isn’t just a test script, it’s a symbol of momentum, of action. You started something. You ran it. You learned. Now imagine where you’ll be after 100 scripts.

Learn → Build → Repeat. Let’s go!

0
Subscribe to my newsletter

Read articles from IT Learn Mode directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

IT Learn Mode
IT Learn Mode

I’m Sandro Figueiredo, a Modern Workplace Consultant who has spent more than ten years helping organizations move to the cloud, streamline how they work, and get the most out of Microsoft technologies. I started this blog because I believe in the power of learning something new, putting it into practice, and then doing it all over again. Learn. Build. Repeat. It is how I grow, how I stay curious, and how I shape my own style. This space is where I share what I discover along the way. From practical guides to lessons learned in the real world, my goal is to make complex things easier to understand so we can all keep learning and building together.