A set of AutoHotKey scripts that allow you to manually run the operations shown in the WINKEY+P menu: PC-Screen only, Duplicate, Extend and Second Screen only.
run, C:\Windows\System32\DisplaySwitch.exe /internal
run, C:\Windows\System32\DisplaySwitch.exe /external
run, C:\Windows\System32\DisplaySwitch.exe /clone
run, C:\Windows\System32\DisplaySwitch.exe /extend