apre il file indicato eseguendo il software di default del sistema
esempio: apre il browser e legge il file html Invoke-Item "C:\Users\AC404\Downloads\test.html"
Invoke-Command
esegue un comando in un computer remoto da chiarire
DOScmd /c
cmd /c "comando DOS"
per inserie nel comando DOS le "" si usa il caratarre escape ` cmd /c "copy `"C:\Test Oggi\file di prova.txt`"`"C:\Destinazione\file di prova.txt`"" mette le " per gestire gli spazi
processo esterno
per esegiure un software esterno ed ettendere che abbia completato il processo di usa
Start-Process path\eseguibile -NoNewWindow -Wait
esempio: apro Notepad ed attendo che venga chiuso Start-Process C:\Windows\notepad.exe -NoNewWindow -Wait