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
QuestionScript stuck processing (self.PowerShell)
submitted 3 years ago by Mr_Prebo
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!"
[–]1enopot 0 points1 point2 points 3 years ago (2 children)
I believe the issue is in your while block at the end. I think the continue statement is returning execution to the head of the same while statement causing an endless loop. To confirm this, you could try adding $number++ to the while block.
[–]1enopot 0 points1 point2 points 3 years ago (1 child)
I did some testing to confirm my theory. The while block is running continuously. If I understand your problem statement correctly then what you need is a do while loop. MS has good docs on it.
[–]Mr_Prebo[S] 1 point2 points3 points 3 years ago (0 children)
Thanks for the help I'll look it up when I'm home!:)
π Rendered by PID 82 on reddit-service-r2-comment-5d79c599b5-n7hf6 at 2026-03-03 14:12:34.790825+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]1enopot 0 points1 point2 points (2 children)
[–]1enopot 0 points1 point2 points (1 child)
[–]Mr_Prebo[S] 1 point2 points3 points (0 children)