Hello
Currently I have PowerShell that
1. Maps network drive
2. Runs batch 1
Batch 1 runs batch 2 with switches and then reboots computer.
I'm sure it is possible to run these two commands from withing PowerShell.
Please, is there are way for PowerShell script to run program (batch) with switches and then reboot PC after first command is done?
I've tried running batch from PowerShell using the code below but I couldn't use switches. Also, I do not think that reboot command will go after first command is done. May be I can combine two commands with "&&" or "&"?
Start-Process -Wait -FilePath 'C:\test.bat' -Verb RunAs