Port to Windows

This tool might also be useful for labs running that other operating system.

Porting this to Windows requires at least the following steps: