How I can I start a powershell command line from a batch file and enforce it to stay open?

pencilCake

How I can I start a powershell session from a batch file so that it starts the Powershell command line (and imports some modules and then) stays open instead being closed once the commands are run in the bat. So that I can continue to work on the PS Shell command line with the modules imported.

Thanks

Valorax

You could try this.

-noexit will stop powershell for terminating.

start powershell.exe -noexit

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How can I create a file with a specific size from a command line?

분류에서Dev

How can I pass command line arguments to a program in a Windows batch file?

분류에서Dev

How do I start tty from the command-line?

분류에서Dev

How can I turn on File and Printer sharing, and the Firewall from the Windows command line

분류에서Dev

How can I run a specific line as a command in a text file?

분류에서Dev

Can I make a batch file that sets up a https proxy for IE without showing command line or window?

분류에서Dev

How can I preview HTML documents from the command line?

분류에서Dev

How can I create a message box from the command line?

분류에서Dev

How can I retrieve the Session ID from command line?

분류에서Dev

How can I invoke a user switch from the command line?

분류에서Dev

How can I call a batch file within another batch file?

분류에서Dev

How can I detect the first instance of a command-line Dart program to start?

분류에서Dev

How can I open programms e.g. Skype minimized with a command line?

분류에서Dev

How can I get my public IP address from the command line, if I am behind a router?

분류에서Dev

How can I save the last command to a file?

분류에서Dev

How can I pass parameter in Talend exported job, through command line or bash script file?

분류에서Dev

How can I do disk surface scanning, and fix/reallocate bad sectors in Linux from the command line?

분류에서Dev

How Can I tell if the current user is Admin from Windows Command Line

분류에서Dev

How can I kill all child processes of a certain process from the command line?

분류에서Dev

How can I start several processes with a single command?

분류에서Dev

Can I call the GNOME restart confirmation prompt from the command line?

분류에서Dev

How can I open thunderbird in the system tray with a command

분류에서Dev

How can i open an .png file with an .sh file?

분류에서Dev

How can i resolve the path laocation in batch file

분류에서Dev

How can I run a batch file with a loop as a scheduled task?

분류에서Dev

How can I extract text before a character or string in a batch file?

분류에서Dev

How can I install one language by command-line

분류에서Dev

How can I import a database using command line?

분류에서Dev

How can I play a song in the background via my command line?

Related 관련 기사

  1. 1

    How can I create a file with a specific size from a command line?

  2. 2

    How can I pass command line arguments to a program in a Windows batch file?

  3. 3

    How do I start tty from the command-line?

  4. 4

    How can I turn on File and Printer sharing, and the Firewall from the Windows command line

  5. 5

    How can I run a specific line as a command in a text file?

  6. 6

    Can I make a batch file that sets up a https proxy for IE without showing command line or window?

  7. 7

    How can I preview HTML documents from the command line?

  8. 8

    How can I create a message box from the command line?

  9. 9

    How can I retrieve the Session ID from command line?

  10. 10

    How can I invoke a user switch from the command line?

  11. 11

    How can I call a batch file within another batch file?

  12. 12

    How can I detect the first instance of a command-line Dart program to start?

  13. 13

    How can I open programms e.g. Skype minimized with a command line?

  14. 14

    How can I get my public IP address from the command line, if I am behind a router?

  15. 15

    How can I save the last command to a file?

  16. 16

    How can I pass parameter in Talend exported job, through command line or bash script file?

  17. 17

    How can I do disk surface scanning, and fix/reallocate bad sectors in Linux from the command line?

  18. 18

    How Can I tell if the current user is Admin from Windows Command Line

  19. 19

    How can I kill all child processes of a certain process from the command line?

  20. 20

    How can I start several processes with a single command?

  21. 21

    Can I call the GNOME restart confirmation prompt from the command line?

  22. 22

    How can I open thunderbird in the system tray with a command

  23. 23

    How can i open an .png file with an .sh file?

  24. 24

    How can i resolve the path laocation in batch file

  25. 25

    How can I run a batch file with a loop as a scheduled task?

  26. 26

    How can I extract text before a character or string in a batch file?

  27. 27

    How can I install one language by command-line

  28. 28

    How can I import a database using command line?

  29. 29

    How can I play a song in the background via my command line?

뜨겁다태그

보관