# File lib/specinfra/backend/powershell/script_helper.rb, line 21 def add_pre_command(cmd) path = get_config(:path) if get_config(:pre_command) cmd.strip! cmd = "\#{get_config(:pre_command)}\n\#{cmd}\n" cmd = "$env:path = \"#{path};$env:path\"\n#{cmd}" if path end cmd end