I just download Powershell 2.0 and using the ISE. In general I really like it but I am looking for a workaround on a gotcha. There are a lot of legacy commands which are interactive. For example xcopy will prompt the user by default if it is told to overwrite a file.
In the Powershell ISE this appears to hang
mkdir c:\tmp
cd c:\tmp
dir > tmp.txt
mkdir sub
xcopy .\tmp.txt sub # fine
xcopy .\tmp.txt sub # "hang" here while it waits for a user response...
The second xcopy is prompting the user for permission to overwrite C:\tmp\sub\tmp.txt, but the prompt it not displayed in the ISE output window. I can run this fine from cmd.exe but then what use is ISE. How do I know when I need which one?