Running command in ps script

How can i run below command in ps script

“C:\Program Files\link\SAP\startnet.exe” -Set Flag -pass=***

Regards

In PSADT I would do this:

Execute-Process -Path “C:\Program Files\link\SAP\startnet.exe” -SecureParameters “-Set Flag -pass=***”

The parameters SecureParameters is used so that the -pass=*** isnt written to the log.

1 Like