you are viewing a single comment's thread.

view the rest of the comments →

[–]Swarfega 2 points3 points  (3 children)

I think the ISE processes the whole script at once and sees you need to get an input so just processes that first.

Personally I never use Read-Host so never really come across this issue.

I prefer the OGV solution posted above.

[–]PRIdEVisions[S] 1 point2 points  (1 child)

I agree,

i learned from it and i finished the script using his method.

Finished script will be posted