Thanks for reaching out. The reason why the script to open the browser works from the ISE, is because you are opening it from a Powershell interactive console that’s being executed by a logged in user (you).
Let me give you overview of what I am trying to achieve.
After the deployment on Octopus, I want to move build files into “Desktop Module” folder under my root directory of DNN Module. And then open my DNN site in a browser.
For a testing purpose, I tried opening google.com.
Let me know if you have any other alternative to achieve this.
This e-mail transmission and any files transmitted with it are confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, you must not copy, distribute or disseminate the information, or take any action in reliance of it. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Company. If you have received this message in error, do not open any attachment but please notify the sender (above) deleting this message from your system. Please rely on your own virus check no responsibility is taken by the sender for any damage arising out of any bug or virus infection.
The key here is that the Tentacle (which is what executes your Powershell script) runs as a Service. When you try to open IE from a the Tentacle service, you do get to open an IExplorer.exe background process (you can see it on the Task Manager), but you cannot interact with it from the UI.
This e-mail transmission and any files transmitted with it are confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, you must not copy, distribute or disseminate the information, or take any action in reliance of it. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Company. If you have received this message in error, do not open any attachment but please notify the sender (above) deleting this message from your system. Please rely on your own virus check no responsibility is taken by the sender for any damage arising out of any bug or virus infection.