Install Power Query unattended in 3 steps:
1. Download the lastest version of Power Query here
2. Open an administrative command prompt
3. Type the following command line to install unattended with no user interaction
msiexec /i “PowerQuery_2.18.3874.242 (64-bit) [en-us].msi” ACCEPT_EULA=1 /quiet
To provide logging you can add the /lvlogfile.txt and review if installation was successful.