You can use a LabVIEW VI to automatically launch a Microsoft Windows PowerShell window and continuously send commands to the active PowerShell session. This approach allows you to execute PowerShell commands interactively from LabVIEW while viewing the command output directly in the opened PowerShell window.
This method is intended for LabVIEW users who need to automate command-line operations without closing the PowerShell session after each command execution.
Prerequisites:
- NI LabVIEW
- Microsoft Windows PowerShell
- ActiveX support enabled in Windows
- Access to the IWshRuntimeLibrary.IWshShell3 ActiveX interface