Execute multiple Powershell commands on one line

To execute multiple commands in Windows PowerShell (a scripting language of Microsoft Windows), simply use a semicolon.

An example can be this:

Stop-Process -Name notepad; Move-Item c:\pdf1\*.zip c:\pdf2

 

Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.

 

3 thoughts on “Execute multiple Powershell commands on one line

Leave a Reply

Your email address will not be published. Required fields are marked *