Relative Content

Tag Archive for powershellcommand-line

Powershell – Passing commands to spawned Command Prompt

I’ll try to explain the use case here. I am writing a script to automate the management of remote services. This can easily be done with sc.exe via command prompt. However, this use case is to write the script via Powershell.

How Do I Pass Data From PowerShell script to Windows Command

I need to modify the command file startup for a site written in Micro Focus COBOL to access an Azure key vault. I wrote a PowerShell script to access the key vault – I need to pass back to the command file data which the command file uses to set environmant variables. I don’t want to pass a variable at the Machine level – that will defeat the purpose of using a key vault. How do I send a string variable back to the command file?