---
title: "Discussion on \"ScriptBlock and SessionState in PowerShell\" | Hashnode"
description: "Discussion on \"ScriptBlock and SessionState in PowerShell\". How they work together"
url: "https://hashnode.com/posts/scriptblock-and-sessionstate-in-powershell/6456455f08e933fdec7d88ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [ScriptBlock and SessionState in PowerShell](https://mdgrs.hashnode.dev/scriptblock-and-sessionstate-in-powershell?utm_source=hashnode&utm_medium=feed)

How they work together

May 6, 2023 · 6 min read · mdgrs.hashnode.dev  
Updated Apr 29, 2025  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)

## Written by

[mdgrs](https://hashnode.com/@mdgrs)

@mdgrs

  
[View profile](https://hashnode.com/@mdgrs)

Hobby Coder who loves PowerShell 💻

Hobby Coder who loves PowerShell 💻 GameDev at work 🕹️

## Responses 1

Markdown supported · ⌘↵ to post

[Justin Grote](https://hashnode.com/@JustinGrote)

[Apr 29, 2025](https://hashnode.com/posts/scriptblock-and-sessionstate-in-powershell/6456455f08e933fdec7d88ca/comment/681147e3c051b0bfe9ec6687)

Excellent and insightful article! Well done!

[mdgrs](https://hashnode.com/@mdgrs)

[Apr 29, 2025](https://hashnode.com/posts/scriptblock-and-sessionstate-in-powershell/6456455f08e933fdec7d88ca/comment/681147e3c051b0bfe9ec6687#reply-68115cc60aa432f22b353b2f)

Thank you!
