Sometimes, certain windows powershell commands won't run if you are not in the proper directory. The reasons for this can include but are not limited to:
- If you need to echo the directory you are in
- If you are trying to run a command that is restricted by folder permissions
To accomplish this, you can run multiple commands in one line using the '&&' characters. An example of this would be:
ipconfig /release; ipconfig /renew
This will release and renew the ip configurations of an endpoint. Although this is a very simple example, you can increase the complexity of the final result and allows for further complexity and possibilities to your procedures.