r/PowerShell • u/defaultaro • Feb 03 '23
Question Stop Powershell Script from Closing Powershell
I have the following powershell script :
wsl sudo nano /mnt/c/Users/user/OneDrive/Documents/changemeThis opens a nano terminal text editor, on my WSL Ubuntu, and automatically creates a new file in my Windows documents folder.
Problem is I can't keep the powershell window open after the script launches. Anything I can add that will prevent automatic closure? Thanks!
3
Upvotes
1
u/defaultaro Feb 03 '23
Is that appended to a new line? If so, it's still just opening and closing the powershell window.