$excel = [System.Runtime.InteropServices.Marshal]::GetActiveObject("Excel.Application")
$excel.Range("a1", "a1").value2 = "test"