This is very ugly but I don't want to learn PowerShell right now