Running PowerShell on Ubuntu · System & Process Management

Running the Cross-Platform System Monitoring Script

This section demonstrates how to run your cross-platform system monitoring script in PowerShell 7 on Ubuntu. You will see every step from invoking the script to verifying JSON/CSV output and reviewing stored reports.


1. Execute the Monitoring Script from the Linux Terminal


2. Script execution and output

After executing the script with PowerShell Core, the system monitoring report is generated and displayed in the terminal. The script detects the operating system, records the execution timestamp, and outputs a formatted summary of key system metrics, including CPU usage, memory consumption, disk utilization, IP address, and system uptime.

This output confirms that the cross-platform logic is functioning correctly on Linux and that the monitoring data is being collected, processed, and presented as intended. The displayed summary provides immediate visibility into system health while also validating that the script executed successfully end-to-end.


In running the Get-ChildItem cmdlet, will get a listing of directions located in /home/mark.

In this example, I have the report details in the output directory in the listing.


Changing the directory to the output directiory, via cd.

Verify the output directory file path by running the Get-Location cmdlet.


3. Run Get-ChildItem in the output directory to list reports generated from the script


4. Concatenate the contents of the Latest-report.csv


Back to Home