New
#1
Run Multiple Commands In Powershell?
Hi,
I have three drives in my PC.
Two of them are SSD's and the third one is a mechanical HDD.
I like to optimize them using Powershell.
However, as it stands now.
I'm running the commands separately for each of my drive, i.e.
1.) Optimize-Volume -DriveLetter C -ReTrim -Verbose
For optimizing the (M.2 NVME) C:\ drive.
2 .) Optimize-Volume -DriveLetter D -Verbose
To optimize the (Mechanical HDD) D:\ drive.
3.)Optimize-Volume -DriveLetter E -ReTrim -Verbose
For the (SSD 850 EVO) E:\ drive.
Is there a way to combine these 3 commands into one command.
Which will run in Powershell.
Without having to enter/type each of the commands separately?
Thanks.