Sajal Choudhary

Garden Stream Nordletter Books About
Colophon Now Feeds
Evergreen TIL Shelf Stories Poems
Blog Micro Photos
Books Film TV Games
til powershell
Sajal Choudhary https://sajalchoudhary.net

Powershell Pass Variables to Invoke-Command

POWERSHELL

Refer to local variable with $using

Use the ‘$using:’ scope

$Using:variablename

references:

about Scopes - PowerShell | Microsoft Learn PowerShell: Passing variables to remote commands (powershellexplained.com)

Subscribe to NordLetter

A weekly newsletter on living in Finland.

← Back to Til
UPDATED July 13, 2023 at 13:54
Thoughts? Email [email protected]

This website was last updated on June 9, 2026 at 06:50

New posts for 116 consecutive weeks

1639 total posts

© 2026 Sajal Choudhary. All rights reserved.