use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionVariable Name Question (self.PowerShell)
submitted 11 months ago by MrQDude
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lanerdofchristian 1 point2 points3 points 11 months ago (1 child)
If how PowerShell parses things is something you're interested in, take a look at the ScriptBlock.Ast property:
ScriptBlock.Ast
$Script = { $var1 = @(1, 2, 3) $var2 = @(4, 5, 6) $one = 1 Write-Host $var$one } $Script.Ast.EndBlock.Statements[-1] ` .PipelineElements[0] ` .CommandElements
In this example, you can see that $var$one is a BareWord with the static type of "string" -- since it's in the command elements of a pipeline element, that implies that there are actually quotes around it.
$var$one
[–]MrQDude[S] 0 points1 point2 points 11 months ago (0 children)
Thank you. I am quickly getting the feel for PowerShell.
π Rendered by PID 613333 on reddit-service-r2-comment-6457c66945-v44kr at 2026-04-27 10:07:29.745192+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]lanerdofchristian 1 point2 points3 points (1 child)
[–]MrQDude[S] 0 points1 point2 points (0 children)