To add Powershell to a WordPress post with color:
Copy the code from the Powershell ISE > Paste it into Word > Copy it from Word and Paste it into OneNote > Copy it from OneNote and paste it into WordPress
The first steps will let you record in OneNote with color as well.