I want to replace the path in this command:
$Env:PHANTOMJS_BIN='D:\michael\software\phantomjs-1.9.7-windows\phantomjs.exe'
With the output of this call:
Split-Path (Get-Command phantomjs).Path
Preferably using string interpolation. How is this possible in PowerShell?