You can add tell application "System Events" to keystroke "f" using {command down}
after setting the target of the window. This will select the search bar and enable you to start searching immediately.
If this does not search in the current folder (or target you selected for the window) then go into Finder preferences, click the 'Advanced' tab and change 'When performing a search:' drop-down menu to 'Search the current folder'